diff options
Diffstat (limited to 'nis/nss-default.c')
-rw-r--r-- | nis/nss-default.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nis/nss-default.c b/nis/nss-default.c index 577f7c2d47..ab160b210b 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); } |