tools: add zip utility
[oweals/openwrt.git] / tools / zip / patches / 007-fclose-in-file-not-fclose-x.patch
1 From: Christian Spieler
2 Subject: zipnote.c: Close in_file instead of undefined file x
3 Bug-Debian: http://bugs.debian.org/628594
4 X-Debian-version: 3.0-4
5
6 --- a/zipnote.c
7 +++ b/zipnote.c
8 @@ -661,7 +661,7 @@ char **argv;            /* command line
9      if ((r = zipcopy(z)) != ZE_OK)
10        ziperr(r, "was copying an entry");
11    }
12 -  fclose(x);
13 +  fclose(in_file);
14  
15    /* Write central directory and end of central directory with new comments */
16    if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */