This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, flox, l0nwlf, loewis, michael.foord, orsenthil, r.david.murray, ronaldoussoren
Date 2010-06-22.15:16:36
SpamBayes Score 0.11215058
Marked as misclassified No
Message-id <>

Please see my python-dev post in "red buildbots on 2.7" thread:

I argue that we should apply a fix along the lines of no-darwin-ext.diff while waiting for Apple to fix their bugs and support more than 16 groups in getgroups properly.

Your latest patch, while prevents getgroups from raising an exception, does not change the fact that getgroups return wrong values if group membership changes within the process.

Note that I propose to undefine _DARWIN_C_SOURCE for posixmodule.c only.  I think that is the right thing to do because defining _DARWIN_C_SOURCE is for invoking non-POSIX behavior.  If you still thing there may be other functions in posixmodule.c that require _DARWIN_C_SOURCE, we can probably find a way to change only getgroups, but I cannot figure out how to do it without adding extra source files.

For your reference, here is how getgroups is declared in unistd.h:

int      getgroups(int, gid_t []) __DARWIN_EXTSN(getgroups);
int      getgroups(int, gid_t []);
Date User Action Args
2010-06-22 15:16:38belopolskysetrecipients: + belopolsky, loewis, ronaldoussoren, orsenthil, r.david.murray, michael.foord, flox, l0nwlf
2010-06-22 15:16:38belopolskysetmessageid: <>
2010-06-22 15:16:36belopolskylinkissue7900 messages
2010-06-22 15:16:36belopolskycreate