![]() ![]() | ![]() |
version 1.110, 2019/01/25 00:19:26 | version 1.111, 2019/06/28 05:35:34 | ||
---|---|---|---|
|
|
||
if (noaction) { | if (noaction) { | ||
printf("\tmktemp %s\n", file2); | printf("\tmktemp %s\n", file2); | ||
} else { | } else { | ||
if ((fd = mkstemp(file2)) < 0) | if ((fd = mkstemp(file2)) == -1) | ||
err(1, "can't start '%s' log", file2); | err(1, "can't start '%s' log", file2); | ||
if (fchmod(fd, ent->permissions)) | if (fchmod(fd, ent->permissions)) | ||
err(1, "can't chmod '%s' log file", file2); | err(1, "can't chmod '%s' log file", file2); |