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