mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-04-21 12:31:43 +00:00
find functions now return errors. closes #24
This commit is contained in:
+3
-3
@@ -48,9 +48,9 @@ _unlink(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