mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 14:20:12 +01:00
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>
(cherry picked from commit 6dcb73375e)
This commit is contained in:
parent
4dfb05aaae
commit
f7da9e4cd8
1 changed files with 1 additions and 1 deletions
2
os/log.c
2
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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue