Add aix_setauthdb() before the initial getpwuid() call.

This commit is contained in:
Todd C. Miller
2018-03-17 07:49:08 -06:00
parent 910f288948
commit b06e046835

View File

@@ -544,6 +544,9 @@ get_user_info(struct user_details *ud)
ud->gid = getgid();
ud->egid = getegid();
#ifdef HAVE_SETAUTHDB
aix_setauthdb(IDtouser(ud->uid), NULL);
#endif
pw = getpwuid(ud->uid);
if (pw == NULL)
sudo_fatalx(U_("unknown uid %u: who are you?"), (unsigned int)ud->uid);