summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/nsdispatch.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-08-23 13:59:47 +0000
committerjilles <jilles@FreeBSD.org>2013-08-23 13:59:47 +0000
commitd2eb50cd0ca5fb81f2abdfd917bf5c0ce0fe9ac7 (patch)
treed650118b386b9cb389244a97e437c1de9f858ca2 /lib/libc/net/nsdispatch.c
parent6d81dda61eb6274ed572fd3fdecf93ea3d0c679f (diff)
downloadFreeBSD-src-d2eb50cd0ca5fb81f2abdfd917bf5c0ce0fe9ac7.zip
FreeBSD-src-d2eb50cd0ca5fb81f2abdfd917bf5c0ce0fe9ac7.tar.gz
libc: Make various internal file descriptors from fopen() close-on-exec.
Diffstat (limited to 'lib/libc/net/nsdispatch.c')
-rw-r--r--lib/libc/net/nsdispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c
index 9b7c29b..4fbc9ba 100644
--- a/lib/libc/net/nsdispatch.c
+++ b/lib/libc/net/nsdispatch.c
@@ -361,7 +361,7 @@ nss_configure(void)
if (result != 0)
goto fin2;
}
- _nsyyin = fopen(path, "r");
+ _nsyyin = fopen(path, "re");
if (_nsyyin == NULL)
goto fin;
VECTOR_FREE(_nsmap, &_nsmapsize, sizeof(*_nsmap),
OpenPOWER on IntegriCloud