forked from pool/unzip
This commit is contained in:
parent
f66b9f6544
commit
6d749d3c3b
13
unzip-open_missing_mode.patch
Normal file
13
unzip-open_missing_mode.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- fileio.c
|
||||||
|
+++ fileio.c
|
||||||
|
@@ -425,7 +425,9 @@
|
||||||
|
Trace((stderr, "open_outfile: doing fopen(%s) for writing\n",
|
||||||
|
FnFilter1(G.filename)));
|
||||||
|
|
||||||
|
- fd = open(G.filename, O_WRONLY | O_LARGEFILE | O_CREAT);
|
||||||
|
+ fd = open(G.filename, O_WRONLY | O_LARGEFILE | O_CREAT,
|
||||||
|
+ /* 0644 in portable POSIX notation: */
|
||||||
|
+ S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
|
||||||
|
if ((G.outfile = fdopen(fd, FOPW)) == (FILE *)NULL) {
|
||||||
|
Info(slide, 0x401, ((char *)slide, LoadFarString(CannotCreateFile),
|
||||||
|
FnFilter1(G.filename)));
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 7 12:52:06 CET 2007 - pth@suse.de
|
||||||
|
|
||||||
|
- Pass file mode when calling open with O_CREAT.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 3 13:24:27 CET 2007 - pth@suse.de
|
Mon Dec 3 13:24:27 CET 2007 - pth@suse.de
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Provides: crunzip
|
|||||||
Obsoletes: crunzip
|
Obsoletes: crunzip
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 5.52
|
Version: 5.52
|
||||||
Release: 86
|
Release: 87
|
||||||
Summary: A program to unpack compressed files
|
Summary: A program to unpack compressed files
|
||||||
Source: unzip552.tar.bz2
|
Source: unzip552.tar.bz2
|
||||||
Url: http://www.info-zip.org/
|
Url: http://www.info-zip.org/
|
||||||
@ -28,6 +28,7 @@ Patch4: unzip-5.52-filename_too_long.patch
|
|||||||
Patch5: unzip-no_file_name_translation.patch
|
Patch5: unzip-no_file_name_translation.patch
|
||||||
Patch6: unzip-near-4GB.patch
|
Patch6: unzip-near-4GB.patch
|
||||||
Patch7: unzip-CVE-2005-2475.patch
|
Patch7: unzip-CVE-2005-2475.patch
|
||||||
|
Patch8: unzip-open_missing_mode.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -52,6 +53,7 @@ Authors:
|
|||||||
%patch5
|
%patch5
|
||||||
%patch6
|
%patch6
|
||||||
%patch7
|
%patch7
|
||||||
|
%patch8
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export RPM_OPT_FLAGS="%optflags -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fstack-protector"
|
export RPM_OPT_FLAGS="%optflags -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fstack-protector"
|
||||||
@ -83,6 +85,8 @@ done
|
|||||||
%{_bindir}/zipgrep
|
%{_bindir}/zipgrep
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 07 2007 - pth@suse.de
|
||||||
|
- Pass file mode when calling open with O_CREAT.
|
||||||
* Mon Dec 03 2007 - pth@suse.de
|
* Mon Dec 03 2007 - pth@suse.de
|
||||||
- Add patch to extend the maximum file/archive size to 2^32-8193
|
- Add patch to extend the maximum file/archive size to 2^32-8193
|
||||||
(4294959103) bytes.
|
(4294959103) bytes.
|
||||||
|
Loading…
Reference in New Issue
Block a user