diff options
author | Franck Bui <fbui@suse.com> | 2018-06-20 18:09:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-20 21:53:23 +0200 |
commit | 25c59b5d8565ec714a561badc4d57f86ae265b61 (patch) | |
tree | 1bde070dd5f9f067605eb6b9f8a63963914d1614 | |
parent | units: fix typo in After= (diff) | |
download | systemd-25c59b5d8565ec714a561badc4d57f86ae265b61.tar.xz systemd-25c59b5d8565ec714a561badc4d57f86ae265b61.zip |
systemctl: mask always reports the same unit names when different unknown units are passed
Before this patch:
# systemctl --runtime mask abuild.mount does-not-exist.mount does-also-not-exist.mount
Unit abuild.mount does not exist, proceeding anyway.
Unit abuild.mount does not exist, proceeding anyway.
Unit abuild.mount does not exist, proceeding anyway.
Created symlink /run/systemd/system/abuild.mount → /dev/null.
Created symlink /run/systemd/system/does-not-exist.mount → /dev/null.
Created symlink /run/systemd/system/does-also-not-exist.mount → /dev/null.
After this patch:
# systemctl --runtime mask abuild.mount does-not-exist.mount does-also-not-exist.mount
Unit abuild.mount does not exist, proceeding anyway.
Unit does-not-exist.mount does not exist, proceeding anyway.
Unit does-also-not-exist.mount does not exist, proceeding anyway.
Created symlink /run/systemd/system/abuild.mount → /dev/null.
Created symlink /run/systemd/system/does-not-exist.mount → /dev/null.
Created symlink /run/systemd/system/does-also-not-exist.mount → /dev/null.
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d673223a274..f072ad0c31f 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6163,7 +6163,7 @@ static int enable_unit(int argc, char *argv[], void *userdata) { if (r < 0) return r; if (r == 0) - log_notice("Unit %s does not exist, proceeding anyway.", *names); + log_notice("Unit %s does not exist, proceeding anyway.", *name); } } |