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 network/16077] Get canonical name from /etc/hosts for AF_INET


https://sourceware.org/bugzilla/show_bug.cgi?id=16077

Siddhesh Poyarekar <siddhesh at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Siddhesh Poyarekar <siddhesh at redhat dot com> ---
Fixed in master:

commit 5a4c6d53f50b264d60cf6453576ca2810c7890b7
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Thu Nov 28 17:18:12 2013 +0530

    Get canonical name in getaddrinfo from hosts file for AF_INET (fixes 16077)

    AF_INET lookup in hosts file uses _nss_files_gethostbyname2_r, which
    is not capable of returning a canonical name if it has found one.
    This change adds _nss_files_gethostbyname3_r, which wraps around
    _nss_files_gethostbyname2_r and then returns result.h_name as the
    canonical name.

 ChangeLog                   |  12 ++++
 NEWS                        |   4 +-
 nss/Versions                |   1 +
 nss/nss_files/files-hosts.c | 507
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------
 4 files changed, 272 insertions(+), 252 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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