=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/sudo.c,v retrieving revision 1.15 retrieving revision 1.16 diff -c -r1.15 -r1.16 *** src/usr.bin/sudo/Attic/sudo.c 2002/01/16 18:09:13 1.15 --- src/usr.bin/sudo/Attic/sudo.c 2002/04/25 15:49:03 1.16 *************** *** 370,378 **** (void) sigaction(SIGQUIT, &sa, NULL); (void) sigaction(SIGTSTP, &sa, NULL); - /* Close the password file */ - endpwent(); - /* Override user's umask if configured to do so. */ if (def_ival(I_UMASK) != 0777) (void) umask(def_mode(I_UMASK)); --- 370,375 ---- *************** *** 384,389 **** --- 381,390 ---- /* Become specified user or root. */ set_perms(PERM_RUNAS, sudo_mode); + + /* Close the password and group files */ + endpwent(); + endgrent(); /* Install the new environment. */ environ = new_environ;