summaryrefslogtreecommitdiff
path: root/src/analyze/analyze-security.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-24 14:09:11 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-10-25 13:41:49 +0900
commitdf7c4eb62a22a5b131007d98ee49f57f6f95483e (patch)
treefd7edf3e3402c294ebb45a3c60ff0ba91558bca0 /src/analyze/analyze-security.c
parent1c089741d3b56ab096c5c401089f68b293b5fa38 (diff)
downloadsystemd-df7c4eb62a22a5b131007d98ee49f57f6f95483e.tar.gz
various tools: be more explicit when a glob is passed when not supported
See https://bugzilla.redhat.com/show_bug.cgi?id=1763488: when we say that 'foo@*.service' is not a valid unit name, this is not clear enough. Let's include the name of the operation that does not support globbing in the error message: $ build/systemctl enable 'foo@*.service' Glob pattern passed to enable, but globs are not supported for this. Invalid unit name "foo@*.service" escaped as "foo@\x2a.service". ...
Diffstat (limited to 'src/analyze/analyze-security.c')
-rw-r--r--src/analyze/analyze-security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c
index 848aeaed80..ca023ea807 100644
--- a/src/analyze/analyze-security.c
+++ b/src/analyze/analyze-security.c
@@ -2093,7 +2093,7 @@ int analyze_security(sd_bus *bus, char **units, AnalyzeSecurityFlags flags) {
fflush(stdout);
}
- r = unit_name_mangle_with_suffix(*i, 0, ".service", &mangled);
+ r = unit_name_mangle(*i, 0, &mangled);
if (r < 0)
return log_error_errno(r, "Failed to mangle unit name '%s': %m", *i);