[issue7900] posix.getgroups() failure on Mac OS X
Alexander Belopolsky
report at bugs.python.org
Wed May 5 20:41:31 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Ronald> How did you detect that the modern getgroups implementation
Ronald> doesn't query the kernel? That would be very odd.
I have just found the source code for getgroups:
http://www.opensource.apple.com/source/Libc/Libc-594.1.4/sys/getgroups.c
As I suspected, it simply calls getgrouplist with the current user name.
>From getgrouplist(3) manpage:
"""
The getgrouplist() function reads through the group file and calculates the group access list for the user specified in name.
"""
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7900>
_______________________________________
More information about the Python-bugs-list
mailing list