X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=plugins%2Fsudoers%2Fgetspwuid.c;fp=plugins%2Fsudoers%2Fgetspwuid.c;h=e98db83582b98e71262a7020aab35c15d0f1a622;hb=ca5f7615983706c51b50ac5a8bfc4e123263df0e;hp=01f488525178c9aae2d5f1b4c4602cc7e0270ce7;hpb=0b21e55969badb5a284e97d31432c3f9139bed27;p=debian%2Fsudo diff --git a/plugins/sudoers/getspwuid.c b/plugins/sudoers/getspwuid.c index 01f4885..e98db83 100644 --- a/plugins/sudoers/getspwuid.c +++ b/plugins/sudoers/getspwuid.c @@ -82,6 +82,7 @@ char * sudo_getepw(const struct passwd *pw) { char *epw = NULL; + debug_decl(sudo_getepw, SUDO_DEBUG_AUTH) /* If there is a function to check for shadow enabled, use it... */ #ifdef HAVE_ISCOMSEC @@ -142,12 +143,14 @@ sudo_getepw(const struct passwd *pw) done: #endif /* If no shadow password, fall back on regular password. */ - return estrdup(epw ? epw : pw->pw_passwd); + debug_return_str(estrdup(epw ? epw : pw->pw_passwd)); } void sudo_setspent(void) { + debug_decl(sudo_setspent, SUDO_DEBUG_AUTH) + #ifdef HAVE_GETPRPWNAM setprpwent(); #endif @@ -163,11 +166,14 @@ sudo_setspent(void) #ifdef HAVE_GETAUTHUID setauthent(); #endif + debug_return; } void sudo_endspent(void) { + debug_decl(sudo_endspent, SUDO_DEBUG_AUTH) + #ifdef HAVE_GETPRPWNAM endprpwent(); #endif @@ -183,4 +189,5 @@ sudo_endspent(void) #ifdef HAVE_GETAUTHUID endauthent(); #endif + debug_return; }