This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/16077] Get canonical name from /etc/hosts for AF_INET
- From: "siddhesh at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 28 Nov 2013 11:53:28 +0000
- Subject: [Bug network/16077] Get canonical name from /etc/hosts for AF_INET
- Auto-submitted: auto-generated
- References: <bug-16077-131 at http dot sourceware dot org/bugzilla/>
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.