diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-10-25 15:15:28 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-10-25 15:34:48 -0400 |
commit | e95c98378ac2d34df864de4a9b785fd17defb77b (patch) | |
tree | 6b864854a6883d482f98e060a813b249f28e2614 /src | |
parent | 7c52a17b1a31eedd40093a4fbb460cf492087d9b (diff) |
systemctl: do not ignore errors in symlink removal
On an ro fs, systemctl disable ... would fail silently.
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/install.c | 2 |
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; |