This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/25156] New: discrepancy between NSS documentation and actual behaviour/code if nsswitch.conf is absent
- From: "jan at hacker dot ch" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 02 Nov 2019 18:16:06 +0000
- Subject: [Bug manual/25156] New: discrepancy between NSS documentation and actual behaviour/code if nsswitch.conf is absent
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=25156
Bug ID: 25156
Summary: discrepancy between NSS documentation and actual
behaviour/code if nsswitch.conf is absent
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: manual
Assignee: unassigned at sourceware dot org
Reporter: jan at hacker dot ch
CC: mtk.manpages at gmail dot com
Target Milestone: ---
I raised this topic in https://github.com/golang/go/issues/35305 :
https://www.gnu.org/software/libc/manual/html_node/Notes-on-NSS-Configuration-File.html
states that, in absence of /etc/nsswitch.conf, ...:
"For the hosts and networks databases the default value is dns
[!UNAVAIL=return] files."
In contrast,
https://sourceware.org/git/?p=glibc.git;a=blob;f=nss/nsswitch.c#l157 seems to
use "files" exclusively, if no /etc/nsswitch.conf is present.
Could you please confirm that the manual (
https://sourceware.org/git/?p=glibc.git;a=blob;f=manual/nss.texi;h=821469a78a298b83c60ed66884fe08e98bb741e0;hb=HEAD#l327
) is outdated and does not reflect current/actual behaviour (of using "files"
exclusively in absence of nsswitch.conf) ... and if so, update the manual?
Furthermore, the
https://sourceware.org/git/?p=glibc.git;a=blob;f=nss/nsswitch.conf#l60 uses
"hosts: files dns" as default.
I wonder whether it's a good idea to provide a default nsswitch.conf (which
uses "hosts: files dns"), while nsswitch.c effectively uses only "files" as
"default" if nsswitch.conf is absent. Wouldn't "files dns" be a more
user-friendly default in code, as it would match the example/default
nsswitch.conf?
--
You are receiving this mail because:
You are on the CC list for the bug.