This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10540] getaddrinfo() fails if /etc/hosts is missing, instead of falling through to nss_dns
- From: "hermier at frugalware dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 Dec 2009 13:28:53 -0000
- Subject: [Bug libc/10540] getaddrinfo() fails if /etc/hosts is missing, instead of falling through to nss_dns
- References: <20090820123035.10540.vorlon@debian.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From hermier at frugalware dot org 2009-12-19 13:28 -------
Seems the fix is incorrect, on 2.11 I get:
bash-4.0# gcc bug-408901.c
bash-4.0# ./a.out www.redhat.com
www.redhat.com -5
bash-4.0# touch /etc/hosts
bash-4.0# ./a.out www.redhat.com
www.redhat.com 0
It seems that returning NO_DATA (in the patch) stops the host search
prematurely. Instead returning HOST_NOT_FOUND fix the issue, and sounds more
logical.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
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.