projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4896475
)
pid1: do not warn if /run/systemd/relabel-extra.d/ doesn't exist
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 18 Sep 2019 15:52:30 +0000
(17:52 +0200)
committer
Michael Biebl
<biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000
(08:17 +0000)
After all, that is the expected state.
(cherry picked from commit
90b059b608d6c53c8efb23b8791190dffadd1a17
)
(cherry picked from commit
ea7151b8c4355f12d4be56f7b41e0a6ec5db7001
)
Gbp-Pq: Name pid1-do-not-warn-if-run-systemd-relabel-extra.d-doesn-t-e.patch
src/core/mount-setup.c
patch
|
blob
|
history
diff --git
a/src/core/mount-setup.c
b/src/core/mount-setup.c
index fc6c5f6bef38c6f862877cc940e490882f879ffa..3ac01ff16e11f4987c1e9faded0b736947a2c41f 100644
(file)
--- a/
src/core/mount-setup.c
+++ b/
src/core/mount-setup.c
@@
-495,8
+495,9
@@
static int relabel_extra(void) {
log_warning_errno(errno, "Failed to remove /run/systemd/relabel-extra.d/%s, ignoring: %m", de->d_name);
}
- /* Remove when we completing things. */
- if (rmdir("/run/systemd/relabel-extra.d") < 0)
+ /* Remove when we complete things. */
+ 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;