aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsandbox/wrapper-funcs/openat.c')
-rw-r--r--libsandbox/wrapper-funcs/openat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsandbox/wrapper-funcs/openat.c b/libsandbox/wrapper-funcs/openat.c
index 3e46ad5..846c63f 100644
--- a/libsandbox/wrapper-funcs/openat.c
+++ b/libsandbox/wrapper-funcs/openat.c
@@ -24,7 +24,7 @@
#define WRAPPER_SAFE_POST_EXPAND \
int mode = 0; \
- if (flags & O_CREAT) { \
+ if (flags & (O_CREAT | O_TMPFILE)) { \
va_list ap; \
va_start(ap, flags); \
mode = va_arg(ap, int); \