chiark / gitweb /
systemctl: do not ignore errors in symlink removal
[elogind.git] / src / shared / install.c
index 0d7c30e29d67415db34c177d1db2db83b2d92927..035b44cc520fe6aa118caa142c8333e17f5bfb03 100644 (file)
@@ -1679,7 +1679,7 @@ int unit_file_disable(
         r = install_context_mark_for_removal(&c, &paths, &remove_symlinks_to, config_path, root_dir);
 
         q = remove_marked_symlinks(remove_symlinks_to, config_path, changes, n_changes, files);
         r = install_context_mark_for_removal(&c, &paths, &remove_symlinks_to, config_path, root_dir);
 
         q = remove_marked_symlinks(remove_symlinks_to, config_path, changes, n_changes, files);
-        if (r == 0)
+        if (r >= 0)
                 r = q;
 
         return r;
                 r = q;
 
         return r;