summaryrefslogtreecommitdiff
path: root/lib/libc/net/nsdispatch.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-09-18 13:58:20 +0000
committerchristos <christos@NetBSD.org>2014-09-18 13:58:20 +0000
commit2c32905e1bfbd923da80f3b2b717ca983295f8ad (patch)
treeee0132025875532ffa8e7e9480e8dece1419fde2 /lib/libc/net/nsdispatch.c
parent658a9a8f623a74a2f8d0189494c4822ef512350a (diff)
make more descriptors that we open as close-on-exec
Diffstat (limited to 'lib/libc/net/nsdispatch.c')
-rw-r--r--lib/libc/net/nsdispatch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c
index 8bfaa3b24ec..738f52b1a9a 100644
--- a/lib/libc/net/nsdispatch.c
+++ b/lib/libc/net/nsdispatch.c
@@ -1,4 +1,4 @@
-/* $NetBSD: nsdispatch.c,v 1.37 2012/03/13 21:13:42 christos Exp $ */
+/* $NetBSD: nsdispatch.c,v 1.38 2014/09/18 13:58:20 christos Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nsdispatch.c,v 1.37 2012/03/13 21:13:42 christos Exp $");
+__RCSID("$NetBSD: nsdispatch.c,v 1.38 2014/09/18 13:58:20 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -519,7 +519,7 @@ _nsconfigure(void)
*/
rwlock_wrlock(&_nslock);
- _nsyyin = fopen(_PATH_NS_CONF, "r");
+ _nsyyin = fopen(_PATH_NS_CONF, "re");
if (_nsyyin == NULL) {
/*
* Unable to open nsswitch.conf; behave as though the