2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

audit_failure() now calls gettext itself using the sudoers locale.

This commit is contained in:
Todd C. Miller
2012-11-08 15:37:43 -05:00
parent 3f82a3407e
commit f454a852cb
4 changed files with 16 additions and 10 deletions

View File

@@ -240,9 +240,9 @@ log_denial(int status, bool inform_user)
/* Handle auditing first. */
if (ISSET(status, FLAG_NO_USER | FLAG_NO_HOST))
audit_failure(NewArgv, _("No user or host"));
audit_failure(NewArgv, N_("No user or host"));
else
audit_failure(NewArgv, _("validation failure"));
audit_failure(NewArgv, N_("validation failure"));
/* Set error message. */
if (ISSET(status, FLAG_NO_USER))
@@ -334,7 +334,7 @@ log_auth_failure(int status, int tries)
debug_decl(log_auth_failure, SUDO_DEBUG_LOGGING)
/* Handle auditing first. */
audit_failure(NewArgv, _("authentication failure"));
audit_failure(NewArgv, N_("authentication failure"));
/*
* Do we need to send mail?