Add a flag argument to sudo_conf_read() so we can decide which
bits get parsed. This lets us parse Debug statements first and init the debug subsystem early.
This commit is contained in:
@@ -138,11 +138,9 @@ main(int argc, char *argv[])
|
||||
bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have own domain */
|
||||
textdomain("sudoers");
|
||||
|
||||
/* Read sudo.conf. */
|
||||
sudo_conf_read(NULL);
|
||||
|
||||
/* Set debug instance to use (if configured). */
|
||||
sudoers_debug_instance = sudo_debug_get_instance(getprogname());
|
||||
/* Initialize the debug subsystem. */
|
||||
sudo_conf_read(NULL, SUDO_CONF_DEBUG);
|
||||
sudoers_debug_register(sudo_conf_debug_files(getprogname()), getprogname());
|
||||
|
||||
dflag = 0;
|
||||
grfile = pwfile = NULL;
|
||||
|
Reference in New Issue
Block a user