2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 05:48:18 +00:00

Fix two PERM_INITIAL cases that were still using user_gids.

This commit is contained in:
Todd C. Miller 2011-07-22 15:13:35 -04:00
parent 043b976c69
commit 1f9fb7609f

View File

@ -366,8 +366,8 @@ set_perms(int perm)
state->euid = geteuid();
state->rgid = getgid();
state->egid = getegid();
state->gids = user_gids;
state->ngids = user_ngids;
state->grlist = user_group_list;
grlist_addref(state->grlist);
break;
case PERM_ROOT:
@ -609,8 +609,8 @@ set_perms(int perm)
state->euid = geteuid();
state->rgid = getgid();
state->egid = getegid();
state->gids = user_gids;
state->ngids = user_ngids;
state->grlist = user_group_list;
grlist_addref(state->grlist);
break;
case PERM_ROOT:
@ -820,8 +820,8 @@ set_perms(int perm)
/* Stash initial state */
state->ruid = getuid();
state->rgid = getgid();
state->gids = user_gids;
state->ngids = user_ngids;
state->grlist = user_group_list;
grlist_addref(state->grlist);
break;
case PERM_ROOT: