From acf1f3df06b5056405f056e9ac538c9aa7af6a63 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 6 Feb 2024 23:29:05 -0600 Subject: [PATCH] fs_openat.hpp --- src/fs_openat.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/fs_openat.hpp b/src/fs_openat.hpp index 25b16e15..bfbd5bbd 100644 --- a/src/fs_openat.hpp +++ b/src/fs_openat.hpp @@ -64,10 +64,6 @@ namespace fs const int flags_, const mode_t mode_) { - int rv; - - rv = ::openat(dirfd_,pathname_,flags_,mode_); - - return ((rv == -1) ? -errno : rv); + return fs::openat(dirfd_,pathname_.string().c_str(),flags_,mode_); } }