From 7634eb14409f95118cbba4b9a5fdea8224e92fc8 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 29 Jul 2016 12:39:44 -0400 Subject: [PATCH] replace nonstandard eaccess with POSIX.1-2008 faccessat --- src/access.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }