summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/tpax_tmpfile_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/tpax_tmpfile_impl.c b/src/internal/tpax_tmpfile_impl.c
index b298ed0..a8e0c10 100644
--- a/src/internal/tpax_tmpfile_impl.c
+++ b/src/internal/tpax_tmpfile_impl.c
@@ -32,7 +32,7 @@ static int tpax_tmpfile_by_framework(void)
static int tpax_tmpfile_by_kernel(void)
{
#ifdef O_TMPFILE
- return open("/tmp",O_RDWR|O_TMPFILE|O_CLOEXEC,0);
+ return openat(AT_FDCWD,"/tmp",O_RDWR|O_TMPFILE|O_CLOEXEC,0);
#else
return (-1);
#endif