projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c52a17
)
systemctl: do not ignore errors in symlink removal
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 25 Oct 2014 19:15:28 +0000
(15:15 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 25 Oct 2014 19:34:48 +0000
(15:34 -0400)
On an ro fs, systemctl disable ... would fail silently.
src/shared/install.c
patch
|
blob
|
history
diff --git
a/src/shared/install.c
b/src/shared/install.c
index
0d7c30e
..
035b44c
100644
(file)
--- 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;