Comment 9 for bug 408901

Revision history for this message
In , Steve Langasek (vorlon) wrote :

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.