]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/install: do not break loop when we enounter a dangling symlink
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Oct 2016 01:20:08 +0000 (21:20 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Oct 2016 06:26:55 +0000 (02:26 -0400)
We should ignore that unit, but otherwise continue.

src/shared/install.c

index 60a6d1312d3f68d3126202961c132516b2d81d8d..bcb169e7dfaed2ff019750ff90634398dc54f87e 100644 (file)
@@ -1767,7 +1767,7 @@ static int install_context_mark_for_removal(
 
                 r = install_info_traverse(scope, c, paths, i, SEARCH_LOAD|SEARCH_FOLLOW_CONFIG_SYMLINKS, NULL);
                 if (r == -ENOLINK)
-                        return 0;
+                        continue;
                 else if (r < 0)
                         return r;