mirror of
https://github.com/fluencelabs/musl
synced 2025-07-30 22:01:57 +00:00
fix failure of open to read variadic mode argument for O_TMPFILE
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user