]> git.ipfire.org Git - thirdparty/glibc.git/commit
Get canonical name in getaddrinfo from hosts file for AF_INET (fixes 16077)
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 28 Nov 2013 11:48:12 +0000 (17:18 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 28 Nov 2013 11:48:12 +0000 (17:18 +0530)
commit5a4c6d53f50b264d60cf6453576ca2810c7890b7
treebdb73e524e4b77c297b766c5be1c6967fe332381
parent897b98ba4dacb02edc3c8775f207a9c9a25fc1e4
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
NEWS
nss/Versions
nss/nss_files/files-hosts.c