projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad5a332
)
direct syscall to open in __init_security needs O_LARGEFILE
author
Rich Felker
<dalias@aerifal.cx>
Fri, 15 Jun 2012 03:58:40 +0000
(23:58 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 15 Jun 2012 03:58:40 +0000
(23:58 -0400)
it probably does not matter for /dev/null, but this should be done
consistently anyway.
src/env/__init_security.c
patch
|
blob
|
history
diff --git
a/src/env/__init_security.c
b/src/env/__init_security.c
index 395abeb526761a9109b914e5924556916b361680..59d546fa6838eee808c8cb3bac9993e3cc1b1647 100644
(file)
--- 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;
}