* grp.cc (getgroups32): Don't use access token of current user when

retrieving group info for another user.
This commit is contained in:
Corinna Vinschen 2002-11-14 10:28:55 +00:00
parent 052990e6b3
commit dae01cb624
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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)