Adapt to pwutil.c

This commit is contained in:
Todd C. Miller
2005-01-05 01:10:16 +00:00
parent 3c58acdc02
commit a5d9296d25
5 changed files with 34 additions and 32 deletions

4
sudo.c
View File

@@ -195,6 +195,7 @@ main(argc, argv, envp)
initial_setup();
sudo_setpwent();
sudo_setgrent();
pwcache_init();
/* Parse our arguments. */
sudo_mode = parse_args(Argc, Argv);
@@ -408,6 +409,7 @@ main(argc, argv, envp)
/* Close the password and group files */
sudo_endpwent();
sudo_endgrent();
pwcache_destroy();
/* Install the real environment. */
environ = new_environ;
@@ -1145,7 +1147,7 @@ get_authpw()
void
cleanup()
{
return;
pwcache_destroy();
}
/*