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:
Todd C. Miller
2016-05-11 09:40:31 -06:00
parent 23d288563e
commit 05db5aa3b8
6 changed files with 66 additions and 53 deletions

View File

@@ -304,8 +304,6 @@ void sudo_freegrcache(void);
void sudo_freepwcache(void);
void sudo_grlist_addref(struct group_list *);
void sudo_grlist_delref(struct group_list *);
int sudo_mkgrcache(void);
int sudo_mkpwcache(void);
void sudo_pw_addref(struct passwd *);
void sudo_pw_delref(struct passwd *);
int sudo_set_grlist(struct passwd *pw, char * const *groups, char * const *gids);