mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-07 11:24:37 +08:00
find functions now return errors. closes #24
This commit is contained in:
@ -50,9 +50,9 @@ _truncate(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;
|
||||
|
Reference in New Issue
Block a user