mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
Add some debugging statements around Defaults lookup.
This commit is contained in:
@@ -186,6 +186,9 @@ find_default(const char *name, const char *file, int lineno, bool quiet)
|
||||
sudo_warnx(U_("%s: unknown defaults entry \"%s\""),
|
||||
file, name);
|
||||
}
|
||||
} else {
|
||||
sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO,
|
||||
"%s: unknown defaults entry \"%s\"", __func__, name);
|
||||
}
|
||||
debug_return_int(-1);
|
||||
}
|
||||
@@ -361,6 +364,9 @@ set_default(const char *var, const char *val, int op, const char *file,
|
||||
int idx;
|
||||
debug_decl(set_default, SUDOERS_DEBUG_DEFAULTS);
|
||||
|
||||
sudo_debug_printf(SUDO_DEBUG_INFO|SUDO_DEBUG_LINENO,
|
||||
"%s: setting Defaults %s -> %s", __func__, var, val ? val : "false");
|
||||
|
||||
idx = find_default(var, file, lineno, quiet);
|
||||
if (idx != -1) {
|
||||
/* Set parsed value in sudo_defs_table and run callback (if any). */
|
||||
|
Reference in New Issue
Block a user