forked from pool/glibc
Accepting request 76694 from home:rhafer:branches:Base:System
bnc#684534, bnc#706719 OBS-URL: https://build.opensuse.org/request/show/76694 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=86
This commit is contained in:
parent
266f2f9b20
commit
a5b5898751
25
glibc-fix-double-loopback.diff
Normal file
25
glibc-fix-double-loopback.diff
Normal file
@ -0,0 +1,25 @@
|
||||
This fixes the problem of getent ahosts localhost returning 127.0.0.1
|
||||
_twice_ on systems that have no ipv6 interfaces up (hence are regarded
|
||||
as ipv4 only by the lookup code), but still have localhost entries for
|
||||
::1 and 127.0.0.1 in /etc/hosts (like most current systems).
|
||||
|
||||
Remapping ::1 to 127.0.0.1 is bogus when /etc/hosts is correct.
|
||||
bnc #684534, #606980
|
||||
http://sources.redhat.com/bugzilla/show_bug.cgi?id=4980
|
||||
|
||||
Index: glibc-2.11.3/nss/nss_files/files-hosts.c
|
||||
===================================================================
|
||||
--- glibc-2.11.3.orig/nss/nss_files/files-hosts.c 2011-05-27 15:08:23.000000000 +0200
|
||||
+++ glibc-2.11.3/nss/nss_files/files-hosts.c 2011-07-20 17:15:26.000000000 +0200
|
||||
@@ -69,11 +69,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;
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 21 12:37:09 UTC 2011 - rhafer@suse.de
|
||||
|
||||
- Disable rewriting ::1 to 127.0.0.1 for /etc/hosts entries.
|
||||
(bnc#684534, bnc#706719)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 20 15:04:33 UTC 2011 - lnussel@suse.de
|
||||
|
||||
|
@ -208,6 +208,8 @@ Patch62: glibc-2.13-warnings.fix
|
||||
Patch63: glibc-2.13-localedef.patch
|
||||
# PATCH-FIX-UPSTREAM Fix futex bug bso#12403 aj@suse.de
|
||||
Patch64: glibc-fix-rwlock-stack-imbalance.patch
|
||||
# PATCH-FIX-OPENSUSE disable rewriting ::1 to 127.0.0.1 for /etc/hosts bnc#684534, bnc#706719
|
||||
Patch65: glibc-fix-double-loopback.diff
|
||||
#
|
||||
# PATCH-FEATURE-OPENSUSE -- add sha support to crypt_blowfish lnussel@suse.de
|
||||
Patch80: crypt_blowfish-1.1-sha.diff
|
||||
@ -445,6 +447,7 @@ rm nscd/s-stamp
|
||||
%patch62 -p1
|
||||
%patch63 -p1
|
||||
%patch64 -p1
|
||||
%patch65 -p1
|
||||
|
||||
#
|
||||
# Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion `map->l_init_called' failed!
|
||||
|
Loading…
Reference in New Issue
Block a user