diff --git a/src/access.cpp b/src/access.cpp index e48a40ea..f1a6e77c 100644 --- a/src/access.cpp +++ b/src/access.cpp @@ -17,8 +17,9 @@ #include #include -#include #include +#include +#include #include "config.hpp" #include "fs_path.hpp" @@ -48,7 +49,7 @@ _access(Policy::Func::Search searchFunc, fs::path::make(basepaths[0],fusepath,fullpath); - rv = ::eaccess(fullpath.c_str(),mask); + rv = ::faccessat(AT_FDCWD,fullpath.c_str(),mask,AT_EACCESS); return ((rv == -1) ? -errno : 0); }