2
0
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:
Todd C. Miller
2010-06-18 17:47:55 -04:00
parent d79b0ece15
commit d1bf11db33
2 changed files with 3 additions and 4 deletions

View File

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

View File

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