From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11910 invoked by alias); 9 Dec 2007 04:34:11 -0000 Received: (qmail 11858 invoked by uid 48); 9 Dec 2007 04:33:58 -0000 Date: Sun, 09 Dec 2007 04:34:00 -0000 From: "vapier at gentoo dot org" To: glibc-bugs@sources.redhat.com Message-ID: <20071209043357.5460.vapier@gentoo.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/5460] New: glibc-2.6+ returns too many results from /etc/hosts in some cases X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00024.txt.bz2 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.