[issue7900] posix.getgroups() failure on Mac OS X

Alexander Belopolsky report at bugs.python.org
Wed Feb 24 19:02:52 CET 2010


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

On Wed, Feb 24, 2010 at 12:45 PM, Martin v. Löwis
<report at bugs.python.org> wrote:
..
> I still think that the sysconf version should be the correct one. If OSX fails to work correctly under
> that version, and causes Python to raise an exception - then that's a platform bug, and should only > accept minimal work arounds.
>

It is more than an exception.  In python 2.6+, os.getgroups() returns
wrong results.  It always reads system database instead of returning
the values that are set with os.setgroups().

> So I propose to close this as "won't fix". Or, the original issue could be resolved by accepting
> EINVAL on OSX as a correct result of getgroups in the test suite.
>

Supporting more than 16 groups is less important (and impossible
without a platform fix) than to have working get/setgroups for
reasonable number of groups.  This is how python behaved before
r63955.

At the very least unit tests that I submitted could be accepted
possibly with a skip on OSX if fixing the bug is not an option.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7900>
_______________________________________


More information about the Python-bugs-list mailing list