Remove sudo_mkpwcache() and sudo_mkgrcache(). We now create the
caches as needed on demand. Also remove calls to sudo_freepwcache() and sudo_freegrcache() that are immediately followed by execve(), they are not needed.
This commit is contained in:
@@ -184,8 +184,6 @@ main(int argc, char *argv[])
|
||||
setgrfile(grfile);
|
||||
if (pwfile)
|
||||
setpwfile(pwfile);
|
||||
if (sudo_mkpwcache() == -1 || sudo_mkgrcache() == -1)
|
||||
sudo_fatalx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
|
||||
|
||||
if (argc < 2) {
|
||||
if (!dflag)
|
||||
|
Reference in New Issue
Block a user