From d92a396da5aac221fa8bdd9abc8ed3b45cc55181 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 18 Jul 2016 12:20:46 -0600 Subject: [PATCH] add debug_decl for cb_runas_default and cb_sudoers_locale --- plugins/sudoers/sudoers.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index 17d32adda..aa0fcfb08 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -1178,10 +1178,12 @@ set_runasgr(const char *group, bool quiet) static bool cb_runas_default(const union sudo_defs_val *sd_un) { + debug_decl(cb_runas_default, SUDOERS_DEBUG_PLUGIN) + /* Only reset runaspw if user didn't specify one. */ if (!runas_user && !runas_group) - return set_runaspw(sd_un->str, true); - return true; + debug_return_bool(set_runaspw(sd_un->str, true)); + debug_return_bool(true); } /* @@ -1190,7 +1192,9 @@ cb_runas_default(const union sudo_defs_val *sd_un) static bool cb_sudoers_locale(const union sudo_defs_val *sd_un) { - return sudoers_initlocale(NULL, sd_un->str); + debug_decl(cb_sudoers_locale, SUDOERS_DEBUG_PLUGIN) + + debug_return_bool(sudoers_initlocale(NULL, sd_un->str)); } /* -- 2.40.0