This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nis/10085] nss_compat cannot handle split groups in NIS for initgroups()


------- Additional Comments From pasky at suse dot cz  2010-05-31 21:02 -------
Created an attachment (id=4824)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4824&action=view)
proposed patch

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.

I think it would be better to simply always require setgrent() to be available
when initgroups() isn't, since the getgrent_next is never going to work
properly without it anyway. Also, in case of the multi-entry fallback, we do
not make sure getgrent is available - I'm not sure how to handle this properly,
but it seems to me that the best solution would be again to require the NIS NSS
module to always provide all the important interfaces. Is there a reason why
the current code attempts to handle NIS NSS that does not provide some of the
interfaces?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10085

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]