This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10540] New: getaddrinfo() fails if /etc/hosts is missing, instead of falling through to nss_dns
- From: "vorlon at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Aug 2009 12:30:35 -0000
- Subject: [Bug libc/10540] New: getaddrinfo() fails if /etc/hosts is missing, instead of falling through to nss_dns
- Reply-to: sourceware-bugzilla at sourceware dot org
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.