summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-14 23:58:40 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-14 23:58:40 -0400
commit1dd6eee692be09f04398f378446afec96bc112f2 (patch)
tree68d9fca9dff822fe45fc570c7545fdb4381b0985
parentad5a332c750550adbd45f474e5936cae65b4fd5e (diff)
downloadmusl-1dd6eee692be09f04398f378446afec96bc112f2.tar.gz
musl-1dd6eee692be09f04398f378446afec96bc112f2.tar.bz2
musl-1dd6eee692be09f04398f378446afec96bc112f2.tar.xz
musl-1dd6eee692be09f04398f378446afec96bc112f2.zip
direct syscall to open in __init_security needs O_LARGEFILE
it probably does not matter for /dev/null, but this should be done consistently anyway.
-rw-r--r--src/env/__init_security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env/__init_security.c b/src/env/__init_security.c
index 395abeb5..59d546fa 100644
--- a/src/env/__init_security.c
+++ b/src/env/__init_security.c
@@ -29,7 +29,7 @@ void __init_security(size_t *auxv)
__syscall(SYS_poll, pfd, 3, 0);
for (i=0; i<3; i++)
if (pfd[i].revents&POLLNVAL)
- if (__syscall(SYS_open, "/dev/null", O_RDWR)<0)
+ if (__syscall(SYS_open, "/dev/null", O_RDWR|O_LARGEFILE)<0)
a_crash();
libc.secure = 1;
}