aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/getusershell.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2012-12-10 17:56:51 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2012-12-10 17:56:51 +0000
commit1084b38bea53d19d3ae2ad182433e6bc9caa3776 (patch)
tree9f5cc2b7405bf9c939ab0a429b81f41e3fce190b /lib/libc/gen/getusershell.c
parent1652751915850f9fe21d5efb7459db8b6ef7ec9c (diff)
downloadsrc-1084b38bea53d19d3ae2ad182433e6bc9caa3776.tar.gz
src-1084b38bea53d19d3ae2ad182433e6bc9caa3776.zip
libc: Make various internal file descriptors close-on-exec.
These are obtained via fopen().
Notes
Notes: svn path=/head/; revision=244092
Diffstat (limited to 'lib/libc/gen/getusershell.c')
-rw-r--r--lib/libc/gen/getusershell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getusershell.c b/lib/libc/gen/getusershell.c
index ce50069d258f..53536e136f82 100644
--- a/lib/libc/gen/getusershell.c
+++ b/lib/libc/gen/getusershell.c
@@ -115,7 +115,7 @@ _local_initshells(rv, cb_data, ap)
sl_free(sl, 1);
sl = sl_init();
- if ((fp = fopen(_PATH_SHELLS, "r")) == NULL)
+ if ((fp = fopen(_PATH_SHELLS, "re")) == NULL)
return NS_UNAVAIL;
cp = line;