From 13eac954640efb15285f70c4d38d9cb2e49da52c Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 20 Apr 2021 22:15:00 +0000 Subject: internals: tpax_tmpfile_by_framework(): semantically switch to openat(). --- src/internal/tpax_tmpfile_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3