projects
/
debian
/
sudo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.8.4p4
[debian/sudo]
/
plugins
/
sudoers
/
getspwuid.c
diff --git
a/plugins/sudoers/getspwuid.c
b/plugins/sudoers/getspwuid.c
index 01f488525178c9aae2d5f1b4c4602cc7e0270ce7..e98db83582b98e71262a7020aab35c15d0f1a622 100644
(file)
--- a/
plugins/sudoers/getspwuid.c
+++ b/
plugins/sudoers/getspwuid.c
@@
-82,6
+82,7
@@
char *
sudo_getepw(const struct passwd *pw)
{
char *epw = NULL;
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
/* 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. */
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)
{
}
void
sudo_setspent(void)
{
+ debug_decl(sudo_setspent, SUDO_DEBUG_AUTH)
+
#ifdef HAVE_GETPRPWNAM
setprpwent();
#endif
#ifdef HAVE_GETPRPWNAM
setprpwent();
#endif
@@
-163,11
+166,14
@@
sudo_setspent(void)
#ifdef HAVE_GETAUTHUID
setauthent();
#endif
#ifdef HAVE_GETAUTHUID
setauthent();
#endif
+ debug_return;
}
void
sudo_endspent(void)
{
}
void
sudo_endspent(void)
{
+ debug_decl(sudo_endspent, SUDO_DEBUG_AUTH)
+
#ifdef HAVE_GETPRPWNAM
endprpwent();
#endif
#ifdef HAVE_GETPRPWNAM
endprpwent();
#endif
@@
-183,4
+189,5
@@
sudo_endspent(void)
#ifdef HAVE_GETAUTHUID
endauthent();
#endif
#ifdef HAVE_GETAUTHUID
endauthent();
#endif
+ debug_return;
}
}