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 ronaldoussoren
Recipients Alexander.Belopolsky, flox, l0nwlf, loewis, michael.foord, orsenthil, r.david.murray, ronaldoussoren
Date 2010-05-05.14:42:19
SpamBayes Score 8.462104e-07
Marked as misclassified No
Message-id <1273070542.58.0.611261976433.issue7900@psf.upfronthosting.co.za>
In-reply-to
Content
I agree with Michael that something should be done.

I propose to add commit os-getgroups-v2.patch, which is the almost same as os-getgroups.patch that I posted earlier, but adds a check for large values of NGROUPS_MAX (see msg99913 for the rationale)

This ensures that os.getgroups() will return a value that is consistent with the id(1) command on OSX and solves the original issue.

Sadly enough this won't fix the other issue that's mentioned in msg99759, because that is a platform issue.  In the current release of OSX it is impossible to both have os.getgroups that reflects calls to os.setgroups and os.getgroups that returns the same information as system tools, and therefore it is my opinion that we should keep the current behavior where we're at least consistent with system tools.
History
Date User Action Args
2010-05-05 14:42:23ronaldoussorensetrecipients: + ronaldoussoren, loewis, orsenthil, r.david.murray, michael.foord, flox, Alexander.Belopolsky, l0nwlf
2010-05-05 14:42:22ronaldoussorensetmessageid: <1273070542.58.0.611261976433.issue7900@psf.upfronthosting.co.za>
2010-05-05 14:42:20ronaldoussorenlinkissue7900 messages
2010-05-05 14:42:19ronaldoussorencreate