summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-25 15:15:28 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-26 18:23:47 -0400
commit8382dfb6c20771eaa8a5f70839ca51e2111f5ee4 (patch)
tree29225c4bf2f3bbed7e1a6a479e9d28b6cb883e22
parentd616ea839bd822bb82d83f69b3a4207517f94bea (diff)
systemctl: do not ignore errors in symlink removal
On an ro fs, systemctl disable ... would fail silently. (cherry picked from commit e95c98378ac2d34df864de4a9b785fd17defb77b)
-rw-r--r--src/shared/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index f49c3d349..f67ebf560 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -1572,7 +1572,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);
- if (r == 0)
+ if (r >= 0)
r = q;
return r;