7085212 zip patches break zipnote -w result in "zipnote error: Bad file number" and "Temporary file failure"
authorVladimir Marek <Vladimir.Marek@oracle.com>
Tue, 10 Jan 2012 15:50:30 -0800
changeset 653 759bda8e4900
parent 652 4be270de2328
child 654 85b230fc8c64
7085212 zip patches break zipnote -w result in "zipnote error: Bad file number" and "Temporary file failure"
components/zip/patches/01_zipnote.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/zip/patches/01_zipnote.patch	Tue Jan 10 15:50:30 2012 -0800
@@ -0,0 +1,11 @@
+--- zip30/zipnote.c.old	Tue Jan 10 15:06:10 2012
++++ zip30/zipnote.c	Tue Jan 10 15:08:59 2012
+@@ -661,7 +661,7 @@
+     if ((r = zipcopy(z)) != ZE_OK)
+       ziperr(r, "was copying an entry");
+   }
+-  fclose(x);
++  fclose(in_file);
+ 
+   /* Write central directory and end of central directory with new comments */
+   if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */