mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Move sudoers locale callback function to locale.c and user it in
visudo and testsudoers.
This commit is contained in:
@@ -245,6 +245,9 @@ main(int argc, char *argv[])
|
||||
/* Set runas callback. */
|
||||
sudo_defs_table[I_RUNAS_DEFAULT].callback = cb_runas_default;
|
||||
|
||||
/* Set locale callback. */
|
||||
sudo_defs_table[I_SUDOERS_LOCALE].callback = sudoers_locale_callback;
|
||||
|
||||
/* Load ip addr/mask for each interface. */
|
||||
if (get_net_ifs(&p) > 0) {
|
||||
if (!set_interfaces(p))
|
||||
|
Reference in New Issue
Block a user