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-25 15:34:48 -0400
commite95c98378ac2d34df864de4a9b785fd17defb77b (patch)
tree6b864854a6883d482f98e060a813b249f28e2614
parent7c52a17b1a31eedd40093a4fbb460cf492087d9b (diff)
systemctl: do not ignore errors in symlink removal
On an ro fs, systemctl disable ... would fail silently.
-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 0d7c30e29d..035b44cc52 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -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);
- if (r == 0)
+ if (r >= 0)
r = q;
return r;