pid1: do not warn if /run/systemd/relabel-extra.d/ doesn't exist

After all, that is the expected state.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-09-19 18:01:40 +02:00
parent 5a4717fe8e
commit 90b059b608
+2 -1
View File
@@ -469,7 +469,8 @@ static int relabel_extra(void) {
}
/* Remove when we complete things. */
if (rmdir("/run/systemd/relabel-extra.d") < 0)
if (rmdir("/run/systemd/relabel-extra.d") < 0 &&
errno != ENOENT)
log_warning_errno(errno, "Failed to remove /run/systemd/relabel-extra.d/ directory: %m");
return c;