Marcus Meissner
b45c767fda
- Add Source URL, see http://en.opensuse.org/SourceUrls - Cleanup spec file OBS-URL: https://build.opensuse.org/request/show/162694 OBS-URL: https://build.opensuse.org/package/show/Archiving/zip?expand=0&rev=11
17 lines
352 B
Diff
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);
|