From 25c59b5d8565ec714a561badc4d57f86ae265b61 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Wed, 20 Jun 2018 18:09:38 +0200 Subject: [PATCH] systemctl: mask always reports the same unit names when different unknown units are passed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d673223..f072ad0 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); } } -- 2.7.4