From 961f23af942dac3f19d68e4cc6a51669e05afdc6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 28 Jul 2023 19:31:19 -0600 Subject: [PATCH] Read path section of sudo.conf for sudo_conf_intercept_path(). --- src/sudo_intercept_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sudo_intercept_common.c b/src/sudo_intercept_common.c index 4355de0ff..59da6d470 100644 --- a/src/sudo_intercept_common.c +++ b/src/sudo_intercept_common.c @@ -230,8 +230,8 @@ sudo_interposer_init(void) debug_return; initialized = true; - /* Read debug section of sudo.conf and init debugging. */ - if (sudo_conf_read(NULL, SUDO_CONF_DEBUG) != -1) { + /* Read debug and path section of sudo.conf and init debugging. */ + if (sudo_conf_read(NULL, SUDO_CONF_DEBUG|SUDO_CONF_PATHS) != -1) { sudo_debug_register("sudo_intercept.so", NULL, NULL, sudo_conf_debug_files("sudo_intercept.so"), INTERCEPT_FD_MIN); }