Files
semi-libc/src/misc
Josiah Worcester 2894a44b40 add alternate backend support for getgrouplist
This completes the alternate backend support that was previously added
to the getpw* and getgr* functions. Unlike those, though, it
unconditionally queries nscd. Any groups from nscd that aren't in the
/etc/groups file are added to the returned list, and any that are
present in the file are ignored. The purpose of this behavior is to
provide a view of the group database consistent with what is observed
by the getgr* functions. If group memberships reported by nscd were
honored when the corresponding group already has a definition in the
/etc/groups file, the user's getgrouplist-based membership in the
group would conflict with their non-membership in the reported
gr_mem[] for the group.

The changes made also make getgrouplist thread-safe and eliminate its
clobbering of the global getgrent state.
2015-03-15 22:32:22 -04:00
..
2012-08-23 14:38:34 -04:00
2014-07-31 02:38:23 -04:00
2014-07-31 02:38:23 -04:00
2014-06-21 19:24:15 -04:00
2015-01-21 13:28:40 -05:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2014-12-20 20:13:27 -05:00
2014-02-01 14:33:33 -05:00
2014-03-17 00:25:23 -04:00