]> granicus.if.org Git - sudo/commitdiff
Add aix_setauthdb() before the initial getpwuid() call.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 17 Mar 2018 13:49:08 +0000 (07:49 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 17 Mar 2018 13:49:08 +0000 (07:49 -0600)
src/sudo.c

index ead8382159012bcd8d4c0fcc5ba23c69d8c31c5f..b187454881e84f3710803a0e7473f64127d4d3b2 100644 (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);