- API: fix to zip code (from Carl C)

svn path=/trunk/boinc/; revision=14563
This commit is contained in:
David Anderson 2008-01-16 04:43:19 +00:00
parent cf4e42b4a3
commit 8392c6a83d
2 changed files with 13 additions and 4 deletions

View File

@ -599,3 +599,9 @@ David Jan 15 2008
create_profile.php
lib/
filesys.C
David Jan 15 2008
- API: fix to zip code (from Carl C)
zip/zip/
z_fileio.c

View File

@ -862,10 +862,13 @@ char *zip; /* path name of zip file to generate temp name for */
#ifdef _WIN32
return mktemp(t);
#else
if (mkstemp(t))
return t;
else
return NULL;
int fd = mkstemp(t);
if (fd) {
close(fd);
return t;
} else {
return NULL;
}
#endif /* MKSTEMP */
#endif /* NO_MKTEMP */
#endif /* TANDEM */