From: Todd C. Miller Date: Mon, 18 Jul 2016 18:20:46 +0000 (-0600) Subject: add debug_decl for cb_runas_default and cb_sudoers_locale X-Git-Tag: SUDO_1_8_18^2~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d92a396da5aac221fa8bdd9abc8ed3b45cc55181;p=sudo add debug_decl for cb_runas_default and cb_sudoers_locale --- 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)); } /*