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:
dc95322
)
fix failure of open to read variadic mode argument for O_TMPFILE
author
Rich Felker
<dalias@aerifal.cx>
Fri, 31 Oct 2014 00:03:56 +0000
(20:03 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 31 Oct 2014 00:03:56 +0000
(20:03 -0400)
src/fcntl/open.c
patch
|
blob
|
history
diff --git
a/src/fcntl/open.c
b/src/fcntl/open.c
index 5e5be1d7b483aecf325123c954afb28cca15ea19..3928a6e6696f05106e81bfd70a84210ce431e62a 100644
(file)
--- a/
src/fcntl/open.c
+++ b/
src/fcntl/open.c
@@
-7,7
+7,7
@@
int open(const char *filename, int flags, ...)
{
mode_t mode = 0;
- if (
flags & O_CREAT
) {
+ if (
(flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE
) {
va_list ap;
va_start(ap, flags);
mode = va_arg(ap, mode_t);