This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5460] glibc-2.6+ returns too many results from /etc/hosts in some cases
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Apr 2008 17:05:42 -0000
- Subject: [Bug libc/5460] glibc-2.6+ returns too many results from /etc/hosts in some cases
- References: <20071209043357.5460.vapier@gentoo.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2008-04-09 17:05 -------
The code works as designed. This is no new change. Back in November 2006 I
added code to map V6 addresses to v4 addresses in gethostbyname2(AF_INET) calls
if it is possible. This is what happens here. The results are not wrong since
you did not ask for a specific protocol.
At some point, when we have unified lookup instead of separate IPv4/v6 lookups,
this might change. But for now it works as expected and the program will work
correctly.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=5460
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.