提交 1dd6eee6 编写于 作者: R Rich Felker

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.
上级 ad5a332c
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册