1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-05 09:17:44 +03:00

systemctl: do not ignore errors in symlink removal

On an ro fs, systemctl disable ... would fail silently.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-10-25 15:15:28 -04:00
parent 7c52a17b1a
commit e95c98378a

View 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);
if (r == 0)
if (r >= 0)
r = q;
return r;