rpms/unzip/devel unzip-5.52-open.patch, NONE, 1.1 unzip.spec, 1.34, 1.35

Ivana Varekova (varekova) fedora-extras-commits at redhat.com
Tue Sep 4 09:00:25 UTC 2007


Author: varekova

Update of /cvs/pkgs/rpms/unzip/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28726

Modified Files:
	unzip.spec 
Added Files:
	unzip-5.52-open.patch 
Log Message:
 fix open call


unzip-5.52-open.patch:

--- NEW FILE unzip-5.52-open.patch ---
--- unzip-5.52/fileio.c.pom	2007-08-30 11:36:05.000000000 +0200
+++ unzip-5.52/fileio.c	2007-09-04 10:37:41.000000000 +0200
@@ -53,7 +53,6 @@
 
   ---------------------------------------------------------------------------*/
 
-
 #define __FILEIO_C      /* identifies this source module */
 #define UNZIP_INTERNAL
 #include "unzip.h"
@@ -425,7 +424,7 @@ int open_outfile(__G)         /* return 
     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, 0600);
     if ((G.outfile = fdopen(fd, FOPW)) == (FILE *)NULL) {
         Info(slide, 0x401, ((char *)slide, LoadFarString(CannotCreateFile),
           FnFilter1(G.filename)));


Index: unzip.spec
===================================================================
RCS file: /cvs/pkgs/rpms/unzip/devel/unzip.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- unzip.spec	7 Feb 2007 08:57:35 -0000	1.34
+++ unzip.spec	4 Sep 2007 08:59:53 -0000	1.35
@@ -1,7 +1,7 @@
 Summary: A utility for unpacking zip files
 Name: unzip
 Version: 5.52
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: BSD
 Group: Applications/Archiving
 Source: ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tar.gz
@@ -13,6 +13,7 @@
 Patch8: unzip-5.52-near-4GB2.patch
 Patch9: unzip-5.52-long-filename.patch
 Patch10: unzip-5.52-makefile.patch
+Patch11: unzip-5.52-open.patch
 URL: http://www.info-zip.org/pub/infozip/UnZip.html
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -37,6 +38,7 @@
 %patch8 -p1 -b .4GB2
 %patch9 -p1 -b .lfn
 %patch10 -p1 -b .make
+%patch11 -p1 -b .open
 ln -s unix/Makefile Makefile
 
 %build
@@ -57,6 +59,9 @@
 %{_mandir}/*/*
 
 %changelog
+* Tue Sep  4 2007 Ivana Varekova <varekova at redhat.com> - 5.52-5
+- fix open call
+
 * Wed Feb  7 2007 Ivana Varekova <varekova at redhat.com> - 5.52-4
 - incorporate the next peckage review comment  
 




More information about the scm-commits mailing list