From: Zbigniew Jędrzejewski-Szmek Date: Wed, 23 Mar 2022 09:49:04 +0000 (+0100) Subject: systemctl: use the right name in error message X-Git-Tag: v251-rc1~61^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22835%2Fhead;p=thirdparty%2Fsystemd.git systemctl: use the right name in error message --- diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index e24cfb2f454..6ef6cc54a8a 100644 --- a/src/systemctl/systemctl-edit.c +++ b/src/systemctl/systemctl-edit.c @@ -362,7 +362,7 @@ static int run_editor(char **paths) { /* We do not fail if the editor doesn't exist because we want to try each one of them * before failing. */ if (errno != ENOENT) { - log_error_errno(errno, "Failed to execute %s: %m", editor); + log_error_errno(errno, "Failed to execute %s: %m", name); _exit(EXIT_FAILURE); } }