From 13355bcd3a080e2e9bf06c633786f48a2aa75b4c Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 15 Apr 2026 11:52:52 -0500 Subject: [PATCH] Auto-commit fuse_truncate.cpp --- src/fuse_truncate.cpp | 2 ++ 1 file changed, 2 insertions(+) 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())