Return to util.c CVS log | Up to [local] / src / usr.bin / ftp |
version 1.89, 2019/05/16 12:44:18 | version 1.90, 2019/06/28 05:35:34 | ||
---|---|---|---|
|
|
||
if (temp[len-1] != '/') | if (temp[len-1] != '/') | ||
temp[len++] = '/'; | temp[len++] = '/'; | ||
(void)strlcpy(&temp[len], TMPFILE, sizeof temp - len); | (void)strlcpy(&temp[len], TMPFILE, sizeof temp - len); | ||
if ((fd = mkstemp(temp)) < 0) { | if ((fd = mkstemp(temp)) == -1) { | ||
warn("unable to create temporary file: %s", temp); | warn("unable to create temporary file: %s", temp); | ||
return (NULL); | return (NULL); | ||
} | } |