diff --git a/src/fuse_truncate.cpp b/src/fuse_truncate.cpp index ca9a9e07..7d7a755e 100644 --- a/src/fuse_truncate.cpp +++ b/src/fuse_truncate.cpp @@ -75,6 +75,8 @@ _truncate(const Policy::Action &actionFunc_, rv = actionFunc_(branches_,fusepath_,branches); if(rv < 0) return rv; + if(branches.empty()) + return -ENOENT; ::_truncate_loop(branches,fusepath_,size_,&prv); if(prv.errors.empty())