From b9fbff740312629ff81594d2b86a133745f0b8f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 23 Mar 2022 10:49:04 +0100 Subject: [PATCH] systemctl: use the right name in error message --- src/systemctl/systemctl-edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.47.3