[issue7900] posix.getgroups() failure on Mac OS X
Alexander Belopolsky
report at bugs.python.org
Sun Feb 21 23:29:14 CET 2010
Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:
On Sun, Feb 21, 2010 at 1:58 PM, Martin v. Löwis <report at bugs.python.org> wrote:
..
> I would propose a different strategy: if _SC_NGROUPS_MAX is defined, use
> that to find out how much memory to allocate, otherwise, fall back to
> the current max array size. Can you find out whether doing so would also
> fix the issue at hand?
I am afraid that the following is the evidence that it won't:
Python 2.7a3+ (trunk:78265M, Feb 20 2010, 15:20:36)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.sysconf('SC_NGROUPS_MAX')
16
>>> len(os.getgroups()) # with the patch
22
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7900>
_______________________________________
More information about the Python-bugs-list
mailing list