mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
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.
This commit is contained in:
parent
ad5a332c75
commit
1dd6eee692
1 changed files with 1 additions and 1 deletions
2
src/env/__init_security.c
vendored
2
src/env/__init_security.c
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue