Remove MULTI_PTRS_ARE_ALIASES in dns-hosts.c
commit76985d3e036ea3519641003b4ab72d53ec496910
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 1 Jul 2014 08:44:09 +0000 (1 14:14 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 1 Jul 2014 11:53:20 +0000 (1 17:23 +0530)
tree92d6cdea80b2d109be3b7939691e29cfdd15667b
parentb0cb309635f43aa269dba0ea9925ced294926546
Remove MULTI_PTRS_ARE_ALIASES in dns-hosts.c

The code in gethnamaddr.c for gethostbyaddr used and set this macro to
allow multiple PTR records to be added as aliases.  This was useful
for gethostbyaddr since it returns a hostent structure, which can
return aliases.

The gethnamaddr.c source however is unused in glibc since pretty much
forever.  Instead, the DNS lookup bits for gethostbyaddr (as well as
getnameinfo) are implemented in dns-hosts.c and in that implementation
all but one (the first one) of the multiple PTR records are ignored.
Since gethnamaddr.c is essentially dead code, ignore that
implementation and replace the MULTI_PTRS_ARE_ALIASES bit with a
comment mentioning that bind adds PTR records as aliases while we
don't.
ChangeLog
resolv/nss_dns/dns-host.c