]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: don't fail on EEXIST when creating mount point
authorLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 28 Jan 2022 22:56:10 +0000 (22:56 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 31 Jan 2022 12:53:47 +0000 (13:53 +0100)
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

src/core/namespace.c

index c8dc6c0503a890ab681862ca5313722f61f82117..e75e003e71a4f43605558223a20318694bb13b90 100644 (file)
@@ -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