aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-11 03:11:35 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-11 03:11:35 -0400
commit775921d02b2d1fea48e6232520497c2ad7431975 (patch)
treea99ed9b547dcbef15fe495fb9a11cd32f0eae02c /localdecls.h
parenttests: add dynamic/static categories (diff)
downloadsandbox-775921d02b2d1fea48e6232520497c2ad7431975.tar.gz
sandbox-775921d02b2d1fea48e6232520497c2ad7431975.tar.bz2
sandbox-775921d02b2d1fea48e6232520497c2ad7431975.zip
libsandbox: handle open's O_TMPFILE flagv2.7
This new flag needs us to unpack & pass down the mode rather than always sending in the value of 0. URL: http://bugs.gentoo.org/529044 Reported-by: Aidan Thornton <makosoft@googlemail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'localdecls.h')
-rw-r--r--localdecls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h
index be99617..0e11fea 100644
--- a/localdecls.h
+++ b/localdecls.h
@@ -52,6 +52,9 @@
#ifndef O_CLOEXEC
# define O_CLOEXEC 0
#endif
+#ifndef O_TMPFILE
+# define O_TMPFILE 0
+#endif
#if !HAVE_DECL_ENVIRON
extern char **environ;