diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-11-28 17:18:12 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-11-28 17:18:12 +0530 |
commit | 5a4c6d53f50b264d60cf6453576ca2810c7890b7 (patch) | |
tree | bdb73e524e4b77c297b766c5be1c6967fe332381 /ChangeLog | |
parent | 897b98ba4dacb02edc3c8775f207a9c9a25fc1e4 (diff) | |
download | glibc-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 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 4c4e8e8a2c..7e46a66919 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2013-11-28 Siddhesh Poyarekar <siddhesh@redhat.com> + + [BZ #16077] + * nss/Versions (libnss_files): Add + _nss_files_gethostbyname3_r. + * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r): + New function. + (HOST_DB_LOOKUP): Remove macro. + (_nss_files_gethostbyname_r): Implement function without the + HOST_DB_LOOKUP macro. + (_nss_files_gethostbyname2_r): Likewise. + 2013-11-28 Ondřej Bílka <neleai@seznam.cz> * malloc/malloc.c (__libc_calloc): Make memset a tail call. |