* grp.cc (getgroups32): Don't use access token of current user when
retrieving group info for another user.
This commit is contained in:
parent
052990e6b3
commit
dae01cb624
|
@ -1,3 +1,8 @@
|
|||
2002-11-14 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* grp.cc (getgroups32): Don't use access token of current user when
|
||||
retrieving group info for another user.
|
||||
|
||||
2002-11-13 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* dll_init.cc (dll_list::detach): Eliminate reliance on passed in dll
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue