mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 13:58:05 +00:00
Fix two PERM_INITIAL cases that were still using user_gids.
This commit is contained in:
parent
043b976c69
commit
1f9fb7609f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user