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:
parent
7c52a17b1a
commit
e95c98378a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user