From: Zbigniew Jędrzejewski-Szmek Date: Mon, 17 Oct 2016 01:20:08 +0000 (-0400) Subject: shared/install: do not break loop when we enounter a dangling symlink X-Git-Tag: v232~78^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=010454b459ef59bab2f9ddd994e4f50491ced371;p=thirdparty%2Fsystemd.git shared/install: do not break loop when we enounter a dangling symlink We should ignore that unit, but otherwise continue. --- diff --git a/src/shared/install.c b/src/shared/install.c index 60a6d1312d3..bcb169e7dfa 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -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;