summaryrefslogtreecommitdiff
path: root/src/stdio
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-29 17:59:50 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-29 17:59:50 -0400
commitf2d08cf7558176af7ef36cf5b5213e676b02d7ac (patch)
treedc3d0d1d9d1a29864c1278828bb0e16b7482d708 /src/stdio
parent3609e019f352912e882b91b7a856c7b30569f2de (diff)
downloadmusl-f2d08cf7558176af7ef36cf5b5213e676b02d7ac.tar.gz
fix some more O_CLOEXEC/SOCK_CLOEXEC issues
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/__fopen_rb_ca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/__fopen_rb_ca.c b/src/stdio/__fopen_rb_ca.c
index 89ccbc37..a1b1b3b6 100644
--- a/src/stdio/__fopen_rb_ca.c
+++ b/src/stdio/__fopen_rb_ca.c
@@ -4,7 +4,7 @@ FILE *__fopen_rb_ca(const char *filename, FILE *f, unsigned char *buf, size_t le
{
memset(f, 0, sizeof *f);
- f->fd = syscall(SYS_open, filename, O_RDONLY|O_LARGEFILE, 0);
+ f->fd = syscall(SYS_open, filename, O_RDONLY|O_LARGEFILE|O_CLOEXEC, 0);
if (f->fd < 0) return 0;
f->flags = F_NOWR | F_PERM;