From: Rich Felker Date: Fri, 31 Oct 2014 00:03:56 +0000 (-0400) Subject: fix failure of open to read variadic mode argument for O_TMPFILE X-Git-Tag: v1.1.6~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d836ea7a69a6441fcdca815328d274e4ed6b707;p=oweals%2Fmusl.git fix failure of open to read variadic mode argument for O_TMPFILE --- diff --git a/src/fcntl/open.c b/src/fcntl/open.c index 5e5be1d7..3928a6e6 100644 --- 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);