diff options
author | midipix <writeonce@midipix.org> | 2021-04-20 22:15:00 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-20 19:27:28 +0000 |
commit | 13eac954640efb15285f70c4d38d9cb2e49da52c (patch) | |
tree | 6a55cb6e32b9288acfe3d8a62b5902001a21b5ab /src/internal | |
parent | a2aed59db7bcb67695a252b11ffb273c4af4e2a4 (diff) | |
download | tpax-13eac954640efb15285f70c4d38d9cb2e49da52c.tar.bz2 tpax-13eac954640efb15285f70c4d38d9cb2e49da52c.tar.xz |
internals: tpax_tmpfile_by_framework(): semantically switch to openat().
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/tpax_tmpfile_impl.c | 2 |
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 |