From: Todd C. Miller Date: Sat, 17 Mar 2018 13:49:08 +0000 (-0600) Subject: Add aix_setauthdb() before the initial getpwuid() call. X-Git-Tag: SUDO_1_8_23^2~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b06e046835f44ba32163b3e96879e291d1dc0e50;p=sudo Add aix_setauthdb() before the initial getpwuid() call. --- diff --git a/src/sudo.c b/src/sudo.c index ead838215..b18745488 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -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);