Adapt to pwutil.c
This commit is contained in:
4
sudo.c
4
sudo.c
@@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user