diff options
author | jilles <jilles@FreeBSD.org> | 2013-08-23 13:59:47 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-08-23 13:59:47 +0000 |
commit | d2eb50cd0ca5fb81f2abdfd917bf5c0ce0fe9ac7 (patch) | |
tree | d650118b386b9cb389244a97e437c1de9f858ca2 /lib/libc/posix1e | |
parent | 6d81dda61eb6274ed572fd3fdecf93ea3d0c679f (diff) | |
download | FreeBSD-src-d2eb50cd0ca5fb81f2abdfd917bf5c0ce0fe9ac7.zip FreeBSD-src-d2eb50cd0ca5fb81f2abdfd917bf5c0ce0fe9ac7.tar.gz |
libc: Make various internal file descriptors from fopen() close-on-exec.
Diffstat (limited to 'lib/libc/posix1e')
-rw-r--r-- | lib/libc/posix1e/mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/posix1e/mac.c b/lib/libc/posix1e/mac.c index 62a74ee..6bc9b77 100644 --- a/lib/libc/posix1e/mac.c +++ b/lib/libc/posix1e/mac.c @@ -179,7 +179,7 @@ mac_init_internal(int ignore_errors) filename = getenv("MAC_CONFFILE"); else filename = MAC_CONFFILE; - file = fopen(filename, "r"); + file = fopen(filename, "re"); if (file == NULL) return (0); |