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

Set debug instance for standalone programs.

This commit is contained in:
Todd C. Miller
2014-10-23 09:40:36 -06:00
parent 1ca52382a4
commit fe9e035ccf
4 changed files with 30 additions and 14 deletions

View File

@@ -141,6 +141,9 @@ main(int argc, char *argv[])
/* Read sudo.conf. */
sudo_conf_read(NULL);
/* Set debug instance to use (if configured). */
sudoers_debug_instance = sudo_debug_get_instance(getprogname());
dflag = 0;
grfile = pwfile = NULL;
while ((ch = getopt(argc, argv, "dg:G:h:P:p:tu:U:")) != -1) {