mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +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);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
cur->sd_un.flag = op;
|
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;
|
break;
|
||||||
case T_LIST:
|
case T_LIST:
|
||||||
if (!val) {
|
if (!val) {
|
||||||
|
@@ -262,6 +262,9 @@ sudoers_policy_open(unsigned int version, sudo_conv_t conversation,
|
|||||||
if (!update_defaults(SETDEF_RUNAS))
|
if (!update_defaults(SETDEF_RUNAS))
|
||||||
log_error(NO_STDERR|NO_EXIT, "problem with defaults entries");
|
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 login class if applicable. */
|
||||||
set_loginclass(sudo_user.pw);
|
set_loginclass(sudo_user.pw);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user