diff options
author | Adam Jackson <ajax@redhat.com> | 2016-01-06 10:03:23 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-01-06 12:23:31 -0500 |
commit | 6dcb73375e0ce389315d55587623eb84e9d13543 (patch) | |
tree | 3a16068d57141ec0d0ab95e69ddc3468fd405547 /os | |
parent | 862cbf4c870c9ed913206c6ef4988bdb470e1c39 (diff) |
os: Failure to remove a non-existent log file is not an error
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'os')
-rw-r--r-- | os/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -218,7 +218,7 @@ LogFilePrep(const char *fname, const char *backup, const char *idstring) } } else { - if (remove(logFileName) != 0) { + if (remove(logFileName) != 0 && errno != ENOENT) { FatalError("Cannot remove old log file \"%s\": %s\n", logFileName, strerror(errno)); } |