Skip to content

Commit

Permalink
[BZ #4702]
Browse files Browse the repository at this point in the history
	* nis/nss-default.c: Include errno.h.
	(init): Preserve errno.
  • Loading branch information
Jakub Jelinek committed Jul 7, 2007
1 parent 65d60af commit 65302b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions nis/nss-default.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
02111-1307 USA. */

#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdio_ext.h>
#include <stdlib.h>
Expand Down Expand Up @@ -54,6 +55,7 @@ static const struct
static void
init (void)
{
int saved_errno = errno;
FILE *fp = fopen (default_nss, "rc");
if (fp != NULL)
{
Expand Down Expand Up @@ -111,6 +113,7 @@ init (void)

fclose (fp);
}
__set_errno (saved_errno);
}


Expand Down

0 comments on commit 65302b6

Please sign in to comment.