aboutsummaryrefslogtreecommitdiffstats
path: root/tools/zip/patches/007-fclose-in-file-not-fclose-x.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/zip/patches/007-fclose-in-file-not-fclose-x.patch')
-rw-r--r--tools/zip/patches/007-fclose-in-file-not-fclose-x.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/zip/patches/007-fclose-in-file-not-fclose-x.patch b/tools/zip/patches/007-fclose-in-file-not-fclose-x.patch
new file mode 100644
index 0000000000..402f90a2d5
--- /dev/null
+++ b/tools/zip/patches/007-fclose-in-file-not-fclose-x.patch
@@ -0,0 +1,16 @@
+From: Christian Spieler
+Subject: zipnote.c: Close in_file instead of undefined file x
+Bug-Debian: http://bugs.debian.org/628594
+X-Debian-version: 3.0-4
+
+--- a/zipnote.c
++++ b/zipnote.c
+@@ -661,7 +661,7 @@ char **argv; /* command line
+ 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 */