diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-07 17:36:20 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-07 17:36:20 +0000 |
commit | 65302b6ec8c5aa89dbfcb8952ee0fb834a1b1d56 (patch) | |
tree | 91ee6e1e02418dc5c4084df722370e2b2e021a06 | |
parent | 65d60af0a5097f04accb76b75c49b90d55547c34 (diff) | |
download | glibc-65302b6ec8c5aa89dbfcb8952ee0fb834a1b1d56.zip glibc-65302b6ec8c5aa89dbfcb8952ee0fb834a1b1d56.tar.gz glibc-65302b6ec8c5aa89dbfcb8952ee0fb834a1b1d56.tar.bz2 |
[BZ #4702]
* nis/nss-default.c: Include errno.h.
(init): Preserve errno.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | nis/nss-default.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2007-07-03 Jakub Jelinek <jakub@redhat.com> + + [BZ #4702] + * nis/nss-default.c: Include errno.h. + (init): Preserve errno. + 2007-06-19 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements diff --git a/nis/nss-default.c b/nis/nss-default.c index 577f7c2..ab160b2 100644 --- a/nis/nss-default.c +++ b/nis/nss-default.c @@ -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 const struct static void init (void) { + int saved_errno = errno; FILE *fp = fopen (default_nss, "rc"); if (fp != NULL) { @@ -111,6 +113,7 @@ init (void) fclose (fp); } + __set_errno (saved_errno); } |