From: Zbigniew Jędrzejewski-Szmek Date: Sun, 19 Feb 2017 22:41:38 +0000 (-0500) Subject: systemctl: fix hint with edit --global/--user X-Git-Tag: v233~65^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dcabf0968ce00fd1295e3f501c9abd0f8d0ed9c;p=thirdparty%2Fsystemd.git systemctl: fix hint with edit --global/--user --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 90ff08538ea..7ab5559b284 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6817,7 +6817,10 @@ static int find_paths_to_edit(sd_bus *bus, char **names, char ***paths) { assert(!path); if (!arg_force) { - log_error("Run 'systemctl edit --force %s' to create a new unit.", *name); + log_error("Run 'systemctl edit%s --force %s' to create a new unit.", + arg_scope == UNIT_FILE_GLOBAL ? " --global" : + arg_scope == UNIT_FILE_USER ? " --user" : "", + *name); return -ENOENT; }