[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups
Mateusz Lenik
report at bugs.python.org
Sat Jul 6 15:09:25 CEST 2013
Mateusz Lenik added the comment:
I attached a patch implementing a workaround for getgroups(2) call. When compiled for OS X it first calls getgroups with 0 as the first argument to get number of groups and then in subsequent call the code fetches the gids.
This patch applies cleanly on 2.7 and 3.x branches.
----------
keywords: +patch
nosy: +mlen
Added file: http://bugs.python.org/file30816/getgroups_osx.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17557>
_______________________________________
More information about the Python-bugs-list
mailing list