summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-20 22:15:00 +0000
committermidipix <writeonce@midipix.org>2021-04-20 19:27:28 +0000
commit13eac954640efb15285f70c4d38d9cb2e49da52c (patch)
tree6a55cb6e32b9288acfe3d8a62b5902001a21b5ab
parenta2aed59db7bcb67695a252b11ffb273c4af4e2a4 (diff)
downloadtpax-13eac954640efb15285f70c4d38d9cb2e49da52c.tar.bz2
tpax-13eac954640efb15285f70c4d38d9cb2e49da52c.tar.xz
internals: tpax_tmpfile_by_framework(): semantically switch to openat().
-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