From 6dcb73375e0ce389315d55587623eb84e9d13543 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 6 Jan 2016 10:03:23 -0500 Subject: os: Failure to remove a non-existent log file is not an error Signed-off-by: Adam Jackson Reviewed-by: Alan Coopersmith --- os/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/log.c b/os/log.c index 6168d59bd..91e55a532 100644 --- a/os/log.c +++ b/os/log.c @@ -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)); } -- cgit v1.2.1