Fix broken up NIS groups for compat NSS module.
commitccab6d8f73a17346862b681250de6f73a6940144
authorUlrich Drepper <drepper@redhat.com>
Sun, 21 Jun 2009 03:39:19 +0000 (20 20:39 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sun, 21 Jun 2009 03:39:19 +0000 (20 20:39 -0700)
tree34edec7e22c47acc098431932dab2c6574beea99
parentf6887a0d9a55f5c80c567d9cb153c1c6582410f9
Fix broken up NIS groups for compat NSS module.

The check for the inclusion of a group in the result gave up too early
in case of broken-up NIS groups.  We now fall back automatically to
the slow mode of using getgrent_r.  As an optimization, if there is
not blacklist we need not perform the check in the first place and
therefore can just accept the results of the initgroups_dyn callback.
ChangeLog
nis/nss_compat/compat-initgroups.c