[Bug libc/10540] New: getaddrinfo() fails if /etc/hosts is missing, instead of falling through to nss_dns
vorlon at debian dot org
sourceware-bugzilla@sourceware.org
Thu Aug 20 12:30:00 GMT 2009
glibc 2.10 introduces a regression in getaddrinfo(); with a standard nsswitch.conf:
$ grep host /etc/nsswitch.conf
hosts: files dns
$
and no /etc/hosts file on the system (which is legitimate; e.g., in a chroot):
$ cat /etc/hosts
cat: /etc/hosts: No such file or directory
$
all calls to getaddrinfo() will fail, short-circuited by an nss_files failure
before invoking nss_dns.
Trivial test case, patch to follow.
--
Summary: getaddrinfo() fails if /etc/hosts is missing, instead of
falling through to nss_dns
Product: glibc
Version: 2.10
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: vorlon at debian dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-linux-gnu
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10540
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list