diff options
author | jilles <jilles@FreeBSD.org> | 2012-12-10 17:56:51 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2012-12-10 17:56:51 +0000 |
commit | c8062fa2a473cce32f1049fa8353dea6b9cdb3f2 (patch) | |
tree | 9f5cc2b7405bf9c939ab0a429b81f41e3fce190b /lib/libc/gen/getusershell.c | |
parent | 8f8a6363fa6769d8a9a530131101dfc5972b9cc9 (diff) | |
download | FreeBSD-src-c8062fa2a473cce32f1049fa8353dea6b9cdb3f2.zip FreeBSD-src-c8062fa2a473cce32f1049fa8353dea6b9cdb3f2.tar.gz |
libc: Make various internal file descriptors close-on-exec.
These are obtained via fopen().
Diffstat (limited to 'lib/libc/gen/getusershell.c')
-rw-r--r-- | lib/libc/gen/getusershell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getusershell.c b/lib/libc/gen/getusershell.c index ce50069..53536e1 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; |