From: Zbigniew Jędrzejewski-Szmek Date: Sat, 25 Oct 2014 19:15:28 +0000 (-0400) Subject: systemctl: do not ignore errors in symlink removal X-Git-Tag: v217~64 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e95c98378ac2d34df864de4a9b785fd17defb77b systemctl: do not ignore errors in symlink removal On an ro fs, systemctl disable ... would fail silently. --- diff --git a/src/shared/install.c b/src/shared/install.c index 0d7c30e29..035b44cc5 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;