r2405 - in glibc-package/trunk/debian: . patches patches/any
Author: schizo
Date: 2007-07-09 09:53:27 +0000 (Mon, 09 Jul 2007)
New Revision: 2405
Added:
glibc-package/trunk/debian/patches/any/cvs-nis-nss-default.diff
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/series
Log:
* Add any/cvs-nis-nss-default.diff: preserve errno.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2007-07-07 16:34:35 UTC (rev 2404)
+++ glibc-package/trunk/debian/changelog 2007-07-09 09:53:27 UTC (rev 2405)
@@ -1,3 +1,9 @@
+glibc (2.6-2) UNRELEASED; urgency=low
+
+ * Add any/cvs-nis-nss-default.diff: preserve errno.
+
+ -- Clint Adams <schizo@debian.org> Mon, 09 Jul 2007 05:50:14 -0400
+
glibc (2.6-1) unstable; urgency=low
[ Pierre Habouzit ]
Added: glibc-package/trunk/debian/patches/any/cvs-nis-nss-default.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/cvs-nis-nss-default.diff (rev 0)
+++ glibc-package/trunk/debian/patches/any/cvs-nis-nss-default.diff 2007-07-09 09:53:27 UTC (rev 2405)
@@ -0,0 +1,31 @@
+===================================================================
+RCS file: /cvs/glibc/libc/nis/nss-default.c,v
+retrieving revision 1.1.2.2
+retrieving revision 1.1.2.3
+diff -u -r1.1.2.2 -r1.1.2.3
+--- libc/nis/nss-default.c 2006/05/01 07:53:44 1.1.2.2
++++ libc/nis/nss-default.c 2007/07/07 17:36:20 1.1.2.3
+@@ -17,6 +17,7 @@
+ 02111-1307 USA. */
+
+ #include <ctype.h>
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdio_ext.h>
+ #include <stdlib.h>
+@@ -54,6 +55,7 @@
+ static void
+ init (void)
+ {
++ int saved_errno = errno;
+ FILE *fp = fopen (default_nss, "rc");
+ if (fp != NULL)
+ {
+@@ -111,6 +113,7 @@
+
+ fclose (fp);
+ }
++ __set_errno (saved_errno);
+ }
+
+
Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series 2007-07-07 16:34:35 UTC (rev 2404)
+++ glibc-package/trunk/debian/patches/series 2007-07-09 09:53:27 UTC (rev 2405)
@@ -94,6 +94,7 @@
any/cvs-malloc.diff
any/cvs-nscd-short-replies.diff
+any/cvs-nis-nss-default.diff
any/local-notls.diff -p0
any/local-asserth-decls.diff -p0
# any/local-base.diff -p0 # g: suspended
Reply to: