2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Make a password/group cache collision a warning rather than fatal.

This should not be possible in practice and we can safely return
the new (potentially duplicate) item as it will be freed by the
caller.  Make sudo_set_grlist() return an error on failure instead
of calling fatalx().
This commit is contained in:
Todd C. Miller
2014-03-26 16:44:29 -06:00
parent db54815996
commit 2d1484fe84
2 changed files with 36 additions and 18 deletions

View File

@@ -316,8 +316,7 @@ void sudo_grlist_addref(struct group_list *);
void sudo_grlist_delref(struct group_list *);
void sudo_pw_addref(struct passwd *);
void sudo_pw_delref(struct passwd *);
void sudo_set_grlist(struct passwd *pw, char * const *groups,
char * const *gids);
int sudo_set_grlist(struct passwd *pw, char * const *groups, char * const *gids);
void sudo_setgrent(void);
void sudo_setpwent(void);
void sudo_setspent(void);