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] glibc-2.6+ returns too many results from /etc/hosts in some cases


------- 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.


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