about summary refs log tree commit diff
path: root/nss/Versions
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-11-28 17:18:12 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-11-28 17:18:12 +0530
commit5a4c6d53f50b264d60cf6453576ca2810c7890b7 (patch)
treebdb73e524e4b77c297b766c5be1c6967fe332381 /nss/Versions
parent897b98ba4dacb02edc3c8775f207a9c9a25fc1e4 (diff)
downloadglibc-5a4c6d53f50b264d60cf6453576ca2810c7890b7.tar.gz
glibc-5a4c6d53f50b264d60cf6453576ca2810c7890b7.tar.xz
glibc-5a4c6d53f50b264d60cf6453576ca2810c7890b7.zip
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.
Diffstat (limited to 'nss/Versions')
-rw-r--r--nss/Versions1
1 files changed, 1 insertions, 0 deletions
diff --git a/nss/Versions b/nss/Versions
index d13d570079..f8ababccc7 100644
--- a/nss/Versions
+++ b/nss/Versions
@@ -40,6 +40,7 @@ libnss_files {
     _nss_files_endhostent;
     _nss_files_gethostbyaddr_r;
     _nss_files_gethostbyname2_r;
+    _nss_files_gethostbyname3_r;
     _nss_files_gethostbyname4_r;
     _nss_files_gethostbyname_r;
     _nss_files_gethostent_r;