aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2022-01-28 22:56:10 +0000
committerLennart Poettering <lennart@poettering.net>2022-01-31 13:53:47 +0100
commit9d6d4c305ab8d65aab7f546450d7331f760b7259 (patch)
treeec7698ef9c67e6051a75fb4d9bf8018ff75f0fc1
parentcore: check argc/argv uncoditionally (diff)
downloadsystemd-9d6d4c305ab8d65aab7f546450d7331f760b7259.tar.xz
systemd-9d6d4c305ab8d65aab7f546450d7331f760b7259.zip
core: don't fail on EEXIST when creating mount point
systemd[1016]: Failed to mount /tmp/app1 (type n/a) on /run/systemd/unit-extensions/1 (MS_BIND ): No such file or directory systemd[1016]: Failed to create destination mount point node '/run/systemd/unit-extensions/1': File exists
-rw-r--r--src/core/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c
index c8dc6c0503a..e75e003e71a 100644
--- a/src/core/namespace.c
+++ b/src/core/namespace.c
@@ -1482,7 +1482,7 @@ static int apply_one_mount(
(void) mkdir_parents(mount_entry_path(m), 0755);
q = make_mount_point_inode_from_path(what, mount_entry_path(m), 0755);
- if (q < 0)
+ if (q < 0 && q != -EEXIST)
log_error_errno(q, "Failed to create destination mount point node '%s': %m",
mount_entry_path(m));
else