2
0
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:
Todd C. Miller
2016-07-20 14:16:00 -06:00
parent 30f7ecca10
commit b5c2ca2fe5
5 changed files with 24 additions and 17 deletions

View File

@@ -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))