Add support for getpwnam_shadow() on OpenBSD

This commit is contained in:
Todd C. Miller
2016-11-17 17:55:44 -07:00
parent f70f595b5b
commit 695784e6ee
4 changed files with 21 additions and 2 deletions

View File

@@ -72,6 +72,14 @@ sudo_getepw(const struct passwd *pw)
goto done;
#endif /* HAVE_ISCOMSEC */
#ifdef HAVE_GETPWNAM_SHADOW
{
struct passwd *spw;
if ((spw = getpwnam_shadow(pw->pw_name)) != NULL)
epw = spw->pw_passwd;
}
#endif /* HAVE_GETPWNAM_SHADOW */
#ifdef HAVE_GETPRPWNAM
{
struct pr_passwd *spw;