r4013 - in glibc-package/trunk/debian: . patches patches/any
Author: aurel32
Date: 2009-11-24 00:18:59 +0000 (Tue, 24 Nov 2009)
New Revision: 4013
Added:
glibc-package/trunk/debian/patches/any/submitted-gethostbyname3.diff
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/series
Log:
* patches/any/submitted-gethostbyname3.diff: return an error if the
nameserver timeouts. Closes: #499781.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2009-11-23 23:02:01 UTC (rev 4012)
+++ glibc-package/trunk/debian/changelog 2009-11-24 00:18:59 UTC (rev 4013)
@@ -1,4 +1,4 @@
-eglibc (2.10.2-2) unstable; urgency=low
+eglibc (2.10.2-2) UNRELEASED; urgency=low
[ Carlos O'Donell]
* debian/patches/hppa/cvs-nptl-compat.diff: new version to fix
@@ -11,8 +11,10 @@
separator on pt_BR locale. Closes: #474479.
* debhelper.in/locales.postinst: if an selected entry is present more than
once, only uncomment the first one. Closes: #529368.
+ * patches/any/submitted-gethostbyname3.diff: return an error if the
+ nameserver timeouts. Closes: #499781.
- -- Aurelien Jarno <aurel32@debian.org> Tue, 24 Nov 2009 00:01:15 +0100
+ -- Aurelien Jarno <aurel32@debian.org> Tue, 24 Nov 2009 01:17:52 +0100
eglibc (2.10.2-1) unstable; urgency=low
Added: glibc-package/trunk/debian/patches/any/submitted-gethostbyname3.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/submitted-gethostbyname3.diff (rev 0)
+++ glibc-package/trunk/debian/patches/any/submitted-gethostbyname3.diff 2009-11-24 00:18:59 UTC (rev 4013)
@@ -0,0 +1,18 @@
+2009-11-24 Aurelien Jarno <aurelien@aurel32.net>
+
+ * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Return an
+ error for ETIMEDOUT.
+
+diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c
+index 818a40a..1eba413 100644
+--- a/resolv/nss_dns/dns-host.c
++++ b/resolv/nss_dns/dns-host.c
+@@ -204,7 +204,7 @@ _nss_dns_gethostbyname3_r (const char *name, int af, struct hostent *result,
+ h_errno = TRY_AGAIN;
+ }
+ else
+- status = (errno == ECONNREFUSED
++ status = ((errno == ECONNREFUSED || errno == ETIMEDOUT)
+ ? NSS_STATUS_UNAVAIL : NSS_STATUS_NOTFOUND);
+ *h_errnop = h_errno;
+ if (h_errno == TRY_AGAIN)
Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series 2009-11-23 23:02:01 UTC (rev 4012)
+++ glibc-package/trunk/debian/patches/series 2009-11-24 00:18:59 UTC (rev 4013)
@@ -215,3 +215,4 @@
any/cvs-sched_h.diff
any/submitted-nis-not-configured.diff
any/submitted-getaddrinfo-nodata.diff
+any/submitted-gethostbyname3.diff
Reply to: