diff --git a/src/fuse_link.cpp b/src/fuse_link.cpp index 2a3c52cb..ae213986 100644 --- a/src/fuse_link.cpp +++ b/src/fuse_link.cpp @@ -94,6 +94,8 @@ _link_create_path(const Policy::Search &searchFunc_, rv = searchFunc_(ibranches_,newfusedirpath,newbranches); if(rv < 0) return rv; + if(newbranches.empty()) + return -ENOENT; return ::_link_create_path_loop(oldbranches,newbranches[0], oldfusepath_,newfusepath_,