]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix multiple nss_compat initgroups() bugs
authorUlrich Drepper <drepper@redhat.com>
Mon, 22 Nov 2010 16:11:24 +0000 (11:11 -0500)
committerUlrich Drepper <drepper@redhat.com>
Mon, 22 Nov 2010 16:11:24 +0000 (11:11 -0500)
commit3056dcdb783a177158a5617657d1a33f872358d6
tree5ecaf81b3305f617e74d6241b2c86a5b87cf96b5
parentcf7c9078a5acdbb435498ace92cd81009637a971
Fix multiple nss_compat initgroups() bugs

Compat initgroups() is completely broken; the code will always set
skip_initgroups_dyn to true, so initgroups() will never be actually
called, but due to the nature of the code, setgrent() won't be called
either - thus, subsequent invocations of initgroups() will not return
the NIS group list anymore.

This is a simple patch that makes sure skip_initgroups_dyn is set only
in case initgroups is not available; it also attempts to handle the
unavailability of other NSS interfaces better.

Conflicts:

ChangeLog
ChangeLog
nis/nss_compat/compat-initgroups.c