2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Only set early defaults once, regardless of how many times the

variable is set in sudoers.  This avoids running an early callback
more than once.  For example, we don't want to call cb_fqdn() if
sudo is compiled with FQDN set but sudoers has "Defaults !fqdn".
This commit is contained in:
Todd C. Miller
2016-07-19 14:58:06 -06:00
parent 5e9173df7a
commit 6daf3c5ce1
2 changed files with 70 additions and 52 deletions

View File

@@ -762,10 +762,6 @@ init_vars(char * const envp[])
debug_return_bool(false);
}
/* Set fully-qualified domain name if specified. */
if (def_fqdn)
cb_fqdn(NULL);
debug_return_bool(true);
}