mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +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:
@@ -42,6 +42,12 @@
|
||||
|
||||
static int current_locale = SUDOERS_LOCALE_USER;
|
||||
|
||||
int
|
||||
sudoers_getlocale(void)
|
||||
{
|
||||
return current_locale;
|
||||
}
|
||||
|
||||
int
|
||||
sudoers_setlocale(int newlocale, int *prevlocale)
|
||||
{
|
||||
|
Reference in New Issue
Block a user