diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2014-09-27 07:13:18 -0300 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2014-11-07 07:18:53 -0200 |
commit | 2e8a3341f470d8fa0dce69b8cf83e346a0017ada (patch) | |
tree | 6d54e308a2863aad0ea6a6ae6c48713f49abab95 | |
parent | 901aad32edcbd1cfd57ee904ada6dcc56a53b385 (diff) | |
download | glibc-2e8a3341f470d8fa0dce69b8cf83e346a0017ada.zip glibc-2e8a3341f470d8fa0dce69b8cf83e346a0017ada.tar.gz glibc-2e8a3341f470d8fa0dce69b8cf83e346a0017ada.tar.bz2 |
drop v6-to-v4 conversions of loopback addresses from /etc/hosts
for ChangeLog
* nss/nss_files/files-hosts.c (LINE_PARSER): Drop family
conversion of loopback addresses from IPv6 to IPv4.
-rw-r--r-- | nss/nss_files/files-hosts.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/nss/nss_files/files-hosts.c b/nss/nss_files/files-hosts.c index ab64ead..49656bc 100644 --- a/nss/nss_files/files-hosts.c +++ b/nss/nss_files/files-hosts.c @@ -68,11 +68,6 @@ LINE_PARSER { if (IN6_IS_ADDR_V4MAPPED (entdata->host_addr)) memcpy (entdata->host_addr, entdata->host_addr + 12, INADDRSZ); - else if (IN6_IS_ADDR_LOOPBACK (entdata->host_addr)) - { - in_addr_t localhost = htonl (INADDR_LOOPBACK); - memcpy (entdata->host_addr, &localhost, sizeof (localhost)); - } else /* Illegal address: ignore line. */ return 0; |