This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5460] New: glibc-2.6+ returns too many results from /etc/hosts in some cases


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]