!18 Return false instead of -1
From: @Bolehu Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
c024121664
29
backport-Return-false-instead-of-1.patch
Normal file
29
backport-Return-false-instead-of-1.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 0c955aa208411eac10a067c72ce2e642697fd533 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Klausner <tk@giga.or.at>
|
||||
Date: Sat, 19 Jun 2021 19:24:43 +0200
|
||||
Subject: [PATCH] Return false instead of -1.
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Noted by Rafał Mikrut in #245
|
||||
---
|
||||
lib/zip_source_file_win32.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/zip_source_file_win32.c b/lib/zip_source_file_win32.c
|
||||
index 6547fc20..0dea2c11 100644
|
||||
--- a/lib/zip_source_file_win32.c
|
||||
+++ b/lib/zip_source_file_win32.c
|
||||
@@ -115,7 +115,7 @@ _zip_win32_op_seek(zip_source_file_context_t *ctx, void *f, zip_int64_t offset,
|
||||
break;
|
||||
default:
|
||||
zip_error_set(&ctx->error, ZIP_ER_SEEK, EINVAL);
|
||||
- return -1;
|
||||
+ return false;
|
||||
}
|
||||
|
||||
li.QuadPart = (LONGLONG)offset;
|
||||
--
|
||||
2.36.1
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
Name: libzip
|
||||
Version: 1.8.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A C library for reading, creating, and modifying zip archives
|
||||
License: BSD
|
||||
URL: https://libzip.org/
|
||||
Source0: https://libzip.org/download/libzip-%{version}.tar.xz
|
||||
|
||||
Patch6000: backport-Return-false-instead-of-1.patch
|
||||
|
||||
BuildRequires: gcc zlib-devel bzip2-devel openssl-devel cmake
|
||||
BuildRequires: perl-interpreter perl(Cwd) perl(File::Copy) perl(File::Path) perl(Getopt::Long)
|
||||
BuildRequires: perl(IPC::Open3) perl(Storable) perl(Symbol) perl(UNIVERSAL) perl(strict) perl(warnings)
|
||||
@ -72,6 +74,9 @@ make test
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jul 31 2023 Bolehu <heyaohua@xfusion.com> - 1.8.0-3
|
||||
- Return false instead of -1
|
||||
|
||||
* Thu Apr 21 2022 Yangping <yangping69@h-partners.com> -1.8.0-2
|
||||
- remove 1.5.1.tar.gz
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user