mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-06 10:44:37 +08:00
find functions now return errors. closes #24
This commit is contained in:
@ -53,9 +53,9 @@ _access(const fs::SearchFunc searchFunc,
|
||||
int rv;
|
||||
fs::PathVector path;
|
||||
|
||||
searchFunc(srcmounts,fusepath,path);
|
||||
if(path.empty())
|
||||
return -ENOENT;
|
||||
rv = searchFunc(srcmounts,fusepath,path);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
rv = ::eaccess(path[0].full.c_str(),mask);
|
||||
|
||||
|
Reference in New Issue
Block a user