[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r3772 - in glibc-package/branches/eglibc-2.10/debian: . patches patches/any



Author: aurel32
Date: 2009-08-18 19:41:18 +0000 (Tue, 18 Aug 2009)
New Revision: 3772

Added:
   glibc-package/branches/eglibc-2.10/debian/patches/any/submitted-missing-etc-hosts.diff
Modified:
   glibc-package/branches/eglibc-2.10/debian/changelog
   glibc-package/branches/eglibc-2.10/debian/patches/series
Log:
  * patches/any/submitted-missing-etc-hosts.diff: new patch from Steve 
    Langasek to treat a missing /etc/hosts as a simple "not found", not as
    an internal error.  Closes: bug#539950.



Modified: glibc-package/branches/eglibc-2.10/debian/changelog
===================================================================
--- glibc-package/branches/eglibc-2.10/debian/changelog	2009-08-18 19:35:49 UTC (rev 3771)
+++ glibc-package/branches/eglibc-2.10/debian/changelog	2009-08-18 19:41:18 UTC (rev 3772)
@@ -107,6 +107,9 @@
   * Use gcc 4.4 by default, except on armel, hppa, mips, mipsel, sparc and 
     hurd-i386.
   * Update to upstream revision 8758.
+  * patches/any/submitted-missing-etc-hosts.diff: new patch from Steve 
+    Langasek to treat a missing /etc/hosts as a simple "not found", not as
+    an internal error.  Closes: bug#539950.
 
   [ Petr Salinger ]
   * Add kfreebsd/local-no-SOCK_NONBLOCK.diff to fix build on GNU/kFreeBSD.
@@ -120,7 +123,7 @@
     on Linux, to fix build.
   * Apply kfreebsd/local-no-SOCK_NONBLOCK.diff on hurd-i386 to fix build too.
 
- -- Aurelien Jarno <aurel32@debian.org>  Mon, 03 Aug 2009 19:49:40 +0200
+ -- Aurelien Jarno <aurel32@debian.org>  Tue, 18 Aug 2009 21:39:16 +0200
 
 eglibc (2.9-24) UNRELEASED; urgency=low
 

Added: glibc-package/branches/eglibc-2.10/debian/patches/any/submitted-missing-etc-hosts.diff
===================================================================
--- glibc-package/branches/eglibc-2.10/debian/patches/any/submitted-missing-etc-hosts.diff	                        (rev 0)
+++ glibc-package/branches/eglibc-2.10/debian/patches/any/submitted-missing-etc-hosts.diff	2009-08-18 19:41:18 UTC (rev 3772)
@@ -0,0 +1,20 @@
+When /etc/hosts is missing, return NO_DATA instead of an internal error;
+otherwise getaddrinfo() fails instead of falling back to the next backend
+(DNS).
+
+Index: eglibc-2.10.1/nss/nss_files/files-hosts.c
+===================================================================
+--- eglibc-2.10.1.orig/nss/nss_files/files-hosts.c
++++ eglibc-2.10.1/nss/nss_files/files-hosts.c
+@@ -423,6 +423,11 @@
+       if (! keep_stream)
+ 	internal_endent ();
+     }
++  else
++    {
++      *errnop = errno;
++      *herrnop = NO_DATA;
++    }
+ 
+   __libc_lock_unlock (lock);
+ 

Modified: glibc-package/branches/eglibc-2.10/debian/patches/series
===================================================================
--- glibc-package/branches/eglibc-2.10/debian/patches/series	2009-08-18 19:35:49 UTC (rev 3771)
+++ glibc-package/branches/eglibc-2.10/debian/patches/series	2009-08-18 19:41:18 UTC (rev 3772)
@@ -194,3 +194,4 @@
 any/submitted-accept4-hidden.diff
 any/submitted-getent-gshadow.diff
 any/cvs-getaddrinfo-nss-notfound.diff
+any/submitted-missing-etc-hosts.diff


Reply to: