Return to hostfile.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.73, 2018/07/16 03:09:13 | version 1.74, 2019/06/27 18:03:37 | ||
---|---|---|---|
|
|
||
/* | /* | ||
* Prepare temporary file for in-place deletion. | * Prepare temporary file for in-place deletion. | ||
*/ | */ | ||
if ((r = asprintf(&temp, "%s.XXXXXXXXXXX", filename)) < 0 || | if ((r = asprintf(&temp, "%s.XXXXXXXXXXX", filename)) = -1 || | ||
(r = asprintf(&back, "%s.old", filename)) < 0) { | (r = asprintf(&back, "%s.old", filename)) == -1) { | ||
r = SSH_ERR_ALLOC_FAIL; | r = SSH_ERR_ALLOC_FAIL; | ||
goto fail; | goto fail; | ||
} | } |