mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Call gettext inside log_error et al instead of having the caller do it. This way we can display any messages to the user in their own locale but log in the sudoers local.
This commit is contained in:
@@ -1010,7 +1010,7 @@ validate_env_vars(char * const env_vars[])
|
||||
if (bad != NULL) {
|
||||
bad[blen - 2] = '\0'; /* remove trailing ", " */
|
||||
log_fatal(NO_MAIL,
|
||||
_("sorry, you are not allowed to set the following environment variables: %s"), bad);
|
||||
N_("sorry, you are not allowed to set the following environment variables: %s"), bad);
|
||||
/* NOTREACHED */
|
||||
efree(bad);
|
||||
}
|
||||
|
Reference in New Issue
Block a user