Do not call set_fqdn() until sudoers parses (where is gets run as a callback).

This commit is contained in:
Todd C. Miller
2010-06-18 17:25:59 -04:00
parent 677a0be850
commit d79b0ece15
2 changed files with 4 additions and 5 deletions

View File

@@ -47,6 +47,10 @@ What's new in Sudo 1.7.3?
specified as floating point numbers for more granular timeout specified as floating point numbers for more granular timeout
values. values.
* Negating the fqdn option in sudoers now works correctly when sudo
is configured with the --with-fqdn option. In previous versions
of sudo the fqdn was set before sudoers was parsed.
What's new in Sudo 1.7.2? What's new in Sudo 1.7.2?
* A new #includedir directive is available in sudoers. This can be * A new #includedir directive is available in sudoers. This can be

View File

@@ -764,11 +764,6 @@ init_vars(char * const envp[])
#endif #endif
/* It is now safe to use log_error() and set_perms() */ /* It is now safe to use log_error() and set_perms() */
if (def_fqdn) {
/* may call log_error() */
set_fqdn();
}
} }
/* /*