[systemd-devel] [PATCH] Fix assertions while disabling unexisting target units

Oleksii Shevchuk alxchk at gmail.com
Sun Jul 14 03:45:17 PDT 2013


---
 src/shared/install.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/install.c b/src/shared/install.c
index 1161068..c1a5ce0 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -1414,7 +1414,7 @@ static int install_context_mark_for_removal(
                 assert_se(hashmap_move_one(c->have_installed, c->will_install, i->name) == 0);
 
                 q = unit_file_search(c, i, paths, root_dir, false);
-                if (q == -ENOENT) {
+                if (q == -ENOENT && i->path) {
                         /* do nothing */
                 } else if (q < 0) {
                         if (r >= 0)
-- 
1.8.2.1



More information about the systemd-devel mailing list