Return to docmd.c CVS log | Up to [local] / src / usr.bin / oldrdist |
version 1.9, 1997/11/05 09:43:39 | version 1.10, 1997/11/16 18:51:59 | ||
---|---|---|---|
|
|
||
if ((fd = open(tempfile, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0 || | if ((fd = open(tempfile, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0 || | ||
(tfp = fdopen(fd, "w")) == NULL) { | (tfp = fdopen(fd, "w")) == NULL) { | ||
error("%s: %s\n", stamp, strerror(errno)); | error("%s: %s\n", tempfile, strerror(errno)); | ||
if (fd >= 0) | if (fd >= 0) | ||
(void) close(fd); | (void) close(fd); | ||
return; | return; |