mirror of https://github.com/BOINC/boinc.git
- API: fix to zip code (from Carl C)
svn path=/trunk/boinc/; revision=14563
This commit is contained in:
parent
cf4e42b4a3
commit
8392c6a83d
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue