This is the mail archive of the libc-alpha@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]

Re: Question on /etc/nsswitch.conf


On 10/02/2017 02:30 PM, Andreas Schwab wrote:
On Sep 28 2017, Zack Weinberg <zackw@panix.com> wrote:

OK, so pull libnss_compat out of the nis directory, build and install
it unconditionally (but still leave it out of the default NSS rules)
and make sure it throws a sensible error if it encounters a forwarding
directive and the forwarded-to module isn't available?

The only problem is that compat-pwd and compat-spwd need to refer to
yp_get_default_domain, for netgroup matches ([+-]@netgroup).

Could the code call uname directly instead? As far as I can tell, yp_get_default_domain is just a thin wrapper around getdomainname, which is again a wrapper around uname.

Thanks,
Florian


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