Message105067
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.
""" |
|
Date |
User |
Action |
Args |
2010-05-05 18:41:32 | belopolsky | set | recipients:
+ belopolsky, loewis, ronaldoussoren, orsenthil, r.david.murray, michael.foord, flox, l0nwlf |
2010-05-05 18:41:31 | belopolsky | set | messageid: <1273084891.99.0.0387150855857.issue7900@psf.upfronthosting.co.za> |
2010-05-05 18:41:30 | belopolsky | link | issue7900 messages |
2010-05-05 18:41:29 | belopolsky | create | |
|