1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

systemctl: use the right name in error message

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-03-23 10:49:04 +01:00
parent 5980d46304
commit b9fbff7403

View 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);
}
}