From 5a4c6d53f50b264d60cf6453576ca2810c7890b7 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 28 Nov 2013 17:18:12 +0530 Subject: 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. --- nss/Versions | 1 + 1 file changed, 1 insertion(+) (limited to 'nss/Versions') diff --git a/nss/Versions b/nss/Versions index d13d570..f8ababc 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; -- cgit v1.1