mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
sudo_debug_register: add minfd argument to specify lowest fd number
Use this in sudo_intercept.so to avoid allocating a low-numbered fd which the shell reserves for use by scripts.
This commit is contained in:
@@ -198,7 +198,7 @@ sudo_interposer_init(void)
|
||||
/* Read debug section of sudo.conf and init debugging. */
|
||||
if (sudo_conf_read(NULL, SUDO_CONF_DEBUG) != -1) {
|
||||
sudo_debug_register("sudo_intercept.so", NULL, NULL,
|
||||
sudo_conf_debug_files("sudo_intercept.so"));
|
||||
sudo_conf_debug_files("sudo_intercept.so"), INTERCEPT_FD_MIN);
|
||||
}
|
||||
sudo_debug_enter(__func__, __FILE__, __LINE__, sudo_debug_subsys);
|
||||
|
||||
|
Reference in New Issue
Block a user