mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-13 23:42:48 +08:00
Remove 'all' policy and simplify logic
This commit is contained in:
@ -51,13 +51,13 @@ _access(const fs::SearchFunc searchFunc,
|
||||
const int mask)
|
||||
{
|
||||
int rv;
|
||||
fs::PathVector path;
|
||||
fs::Path path;
|
||||
|
||||
rv = searchFunc(srcmounts,fusepath,path);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
rv = ::eaccess(path[0].full.c_str(),mask);
|
||||
rv = ::eaccess(path.full.c_str(),mask);
|
||||
|
||||
return ((rv == -1) ? -errno : 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user