zip/zip-3.0-tempfile.patch
Philipp Thomas 82d7e34640 - Update to Zip 3.0:
* large-file support (i.e., > 2GB)
  * support for more than 65536 files per archive
  * multi-part archive support
  * bzip2 compression support
  * Unicode (UTF-8) filename and (partial) comment support
  * difference mode (for incremental backups)
  * filesystem-synch mode
  * cross-archive copy mode
  * extended progress info and logging
  * improved archive-fixing support
  * improved streaming and piping
  * improved command-line parser
  * improved Unix FIFO support
  * Unix 32-bit UIDs/GIDs (requires UnZip 6.0 to restore)

OBS-URL: https://build.opensuse.org/package/show/Archiving/zip?expand=0&rev=9
2010-05-21 17:01:22 +00:00

17 lines
352 B
Diff

--- fileio.c
+++ fileio.c
@@ -1490,6 +1490,13 @@
strcat(t, "ziXXXXXX"); /* must use lowercase for Linux dos file system */
# if defined(UNIX) && !defined(NO_MKSTEMP)
/* tempname should not be called */
+ {
+ int fd;
+
+ if ((fd = mkstemp(t)) < 0)
+ return NULL;
+ close(fd);
+ }
return t;
# else
return mktemp(t);