]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: use the right name in error message 22835/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Mar 2022 09:49:04 +0000 (10:49 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Mar 2022 10:50:18 +0000 (11:50 +0100)
src/systemctl/systemctl-edit.c

index e24cfb2f454ba4dbf67b0dc572054aba40e9561c..6ef6cc54a8a50924621b2bb5c02802435b5a5224 100644 (file)
@@ -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);
                         }
                 }