mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Call set_fqdn() after sudoers has parsed instead of inline as a callback.
This commit is contained in:
@@ -334,10 +334,6 @@ set_default(char *var, char *val, int op)
|
||||
return(FALSE);
|
||||
}
|
||||
cur->sd_un.flag = op;
|
||||
|
||||
/* Special action for I_FQDN. Move to own switch if we get more */
|
||||
if (num == I_FQDN && op)
|
||||
set_fqdn();
|
||||
break;
|
||||
case T_LIST:
|
||||
if (!val) {
|
||||
|
@@ -262,6 +262,9 @@ sudoers_policy_open(unsigned int version, sudo_conv_t conversation,
|
||||
if (!update_defaults(SETDEF_RUNAS))
|
||||
log_error(NO_STDERR|NO_EXIT, "problem with defaults entries");
|
||||
|
||||
if (def_fqdn)
|
||||
set_fqdn(); /* deferred until after sudoers is parsed */
|
||||
|
||||
/* Set login class if applicable. */
|
||||
set_loginclass(sudo_user.pw);
|
||||
|
||||
|
Reference in New Issue
Block a user