summaryrefslogtreecommitdiff
path: root/src/env
diff options
context:
space:
mode:
Diffstat (limited to 'src/env')
-rw-r--r--src/env/__libc_start_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env/__libc_start_main.c b/src/env/__libc_start_main.c
index 3498afbd..d7481c25 100644
--- a/src/env/__libc_start_main.c
+++ b/src/env/__libc_start_main.c
@@ -50,7 +50,7 @@ void __init_libc(char **envp, char *pn)
struct pollfd pfd[3] = { {.fd=0}, {.fd=1}, {.fd=2} };
__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|O_LARGEFILE)<0)
+ if (__sys_open("/dev/null", O_RDWR)<0)
a_crash();
libc.secure = 1;
}