Sourceware Bugzilla – Attachment 2693 Details for
Bug 4980
gethostbyname() etc break for /etc/hosts with both ::1 and 127.0.0.1 localhost entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
getaddrinfo fix for 2.6.1/2.7
getaddrinfo-2.6.1.patch (text/plain), 584 bytes, created by
Tero Pelander
on 2008-04-15 06:13:33 UTC
(
hide
)
Description:
getaddrinfo fix for 2.6.1/2.7
Filename:
MIME Type:
Creator:
Tero Pelander
Created:
2008-04-15 06:13:33 UTC
Size:
584 bytes
patch
obsolete
>--- glibc-2.6.1/nss/nss_files/files-hosts.c.ORIG 2008-04-12 18:55:08.281506616 +0300 >+++ glibc-2.6.1/nss/nss_files/files-hosts.c 2008-04-12 18:57:43.449656866 +0300 >@@ -67,11 +67,6 @@ > { > 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4980
: 2693 |
2816