* grp.cc (internal_getgroups): Fix thinko. Only add enabled groups to
the group list.
This commit is contained in:
parent
2122048bd6
commit
8a179967e6
|
@ -1,3 +1,8 @@
|
|||
2008-05-22 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* grp.cc (internal_getgroups): Fix thinko. Only add enabled groups to
|
||||
the group list.
|
||||
|
||||
2008-05-22 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* grp.cc (internal_getgroups): Don't add deny-only groups to the group
|
||||
|
|
|
@ -382,8 +382,7 @@ internal_getgroups (int gidsetsize, __gid32_t *grouplist, cygpsid * srchsid)
|
|||
if (sid.getfromgr (gr))
|
||||
for (DWORD pg = 0; pg < groups->GroupCount; ++pg)
|
||||
if (sid == groups->Groups[pg].Sid
|
||||
&& !(groups->Groups[pg].Attributes
|
||||
& SE_GROUP_USE_FOR_DENY_ONLY)
|
||||
&& (groups->Groups[pg].Attributes & SE_GROUP_ENABLED)
|
||||
&& sid != well_known_world_sid)
|
||||
{
|
||||
if (cnt < gidsetsize)
|
||||
|
|
Loading…
Reference in New Issue