This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5460] New: glibc-2.6+ returns too many results from /etc/hosts in some cases
- From: "vapier at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Dec 2007 04:33:58 -0000
- Subject: [Bug libc/5460] New: glibc-2.6+ returns too many results from /etc/hosts in some cases
- Reply-to: sourceware-bugzilla at sourceware dot org
if /etc/hosts looks like:
127.0.0.1 localhost localhost4
::1 localhost localhost6
and you lookup "localhost6" with getaddrinfo(), the function returns "127.0.0.1"
and "::1"
glibc-2.5 and older operates correctly and only returns "::1". glibc-2.6 and
newer will in addition incorrectly return "127.0.0.1".
--
Summary: glibc-2.6+ returns too many results from /etc/hosts in
some cases
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: vapier at gentoo dot org
CC: glibc-bugs at sources dot redhat dot com,toolchain at
gentoo dot org
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.