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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user