summaryrefslogtreecommitdiffstats
path: root/login-utils/su-common.c
diff options
context:
space:
mode:
authorSami Kerola2013-01-30 21:33:24 +0100
committerKarel Zak2013-02-06 11:51:17 +0100
commit07ff972eb684cfc88ca1931123fc255927393118 (patch)
treea80a15a3a7dc03bff8c402ea27e4269f4a01644a /login-utils/su-common.c
parenta pointer should not be compared to zero [coccinelle] (diff)
downloadkernel-qcow2-util-linux-07ff972eb684cfc88ca1931123fc255927393118.tar.gz
kernel-qcow2-util-linux-07ff972eb684cfc88ca1931123fc255927393118.tar.xz
kernel-qcow2-util-linux-07ff972eb684cfc88ca1931123fc255927393118.zip
translation: unify exec error messages
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/su-common.c')
-rw-r--r--login-utils/su-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/su-common.c b/login-utils/su-common.c
index 47e05ff7d..3ef4ec472 100644
--- a/login-utils/su-common.c
+++ b/login-utils/su-common.c
@@ -593,7 +593,7 @@ run_shell (char const *shell, char const *command, char **additional_args,
{
int exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
- warn ("%s", shell);
+ warn (_("failed to execute %s"), shell);
exit (exit_status);
}
}
@@ -913,7 +913,7 @@ su_main (int argc, char **argv, int mode)
run_shell (shell, command, argv + optind, max (0, argc - optind));
else {
execvp(argv[optind], &argv[optind]);
- err(EXIT_FAILURE, _("executing %s failed"), argv[optind]);
+ err(EXIT_FAILURE, _("failed to execute %s"), argv[optind]);
}
}