From de4f5012c24a8445f4c97aca8bc2efd09fb83efa Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 14 Mar 2024 23:43:55 -0500 Subject: [PATCH] fuse_getattr.cpp --- src/fuse_getattr.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/fuse_getattr.cpp b/src/fuse_getattr.cpp index 1dfaca5c..d1c6a625 100644 --- a/src/fuse_getattr.cpp +++ b/src/fuse_getattr.cpp @@ -159,7 +159,10 @@ namespace l { rv = searchFunc_(branches_,fusepath_,&basepaths); if(rv == -1) - return -errno; + { + _cache.erase(fusepath_); + return -errno; + } basepath = cache.insert(fusepath_,basepaths[0]); @@ -167,7 +170,10 @@ namespace l } if(rv == -1) - return -errno; + { + + return -errno; + } if(symlinkify_ && symlinkify::can_be_symlink(*st_,symlinkify_timeout_)) symlinkify::convert(fullpath,st_);