* grp.cc (getgroups32): Don't use access token of current user when
retrieving group info for another user.
This commit is contained in:
@ -342,6 +342,7 @@ getgroups32 (int gidsetsize, __gid32_t *grouplist, __gid32_t gid,
|
||||
read_etc_group ();
|
||||
|
||||
if (allow_ntsec &&
|
||||
strcasematch (username, cygheap->user.name ()) &&
|
||||
OpenProcessToken (hMainProc, TOKEN_QUERY, &hToken))
|
||||
{
|
||||
if (GetTokenInformation (hToken, TokenGroups, NULL, 0, &size)
|
||||
|
Reference in New Issue
Block a user