mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
find functions now return errors. closes #24
This commit is contained in:
parent
191e48f54d
commit
11122ba4eb
21 changed files with 123 additions and 111 deletions
|
|
@ -235,9 +235,9 @@ _setxattr(const fs::SearchFunc searchFunc,
|
|||
int error;
|
||||
fs::PathVector paths;
|
||||
|
||||
searchFunc(srcmounts,fusepath,paths);
|
||||
if(paths.empty())
|
||||
return -ENOENT;
|
||||
rv = searchFunc(srcmounts,fusepath,paths);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
rv = -1;
|
||||
error = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue