Adapt to new debug subsystem registration.

This commit is contained in:
Todd C. Miller
2014-10-28 07:36:08 -06:00
parent 67c7c7f9dd
commit ef6dfb3ced

View File

@@ -79,11 +79,10 @@ main(int argc, char *argv[], char *envp[])
if (argc < 2) if (argc < 2)
sudo_fatalx(U_("requires at least one argument")); sudo_fatalx(U_("requires at least one argument"));
/* Read sudo.conf. */ /* Read sudo.conf and initialize the debug subsystem. */
sudo_conf_read(NULL); sudo_conf_read(NULL, SUDO_CONF_DEBUG);
sudo_debug_instance = sudo_debug_register(getprogname(),
/* Set debug instance to use (if configured). */ NULL, NULL, sudo_conf_debug_files(getprogname()));
sudo_debug_instance = sudo_debug_get_instance(getprogname());
if (strcmp(argv[1], "-e") == 0) { if (strcmp(argv[1], "-e") == 0) {
ret = sesh_sudoedit(argc, argv); ret = sesh_sudoedit(argc, argv);