From 7c62fda3c7529bdd196e659025a8db3781bfafb5 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 14 Feb 2024 00:00:19 -0600 Subject: [PATCH] fuse_getattr.cpp --- src/fuse_getattr.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/fuse_getattr.cpp b/src/fuse_getattr.cpp index c9c14b27..ae7f6ba8 100644 --- a/src/fuse_getattr.cpp +++ b/src/fuse_getattr.cpp @@ -155,11 +155,10 @@ namespace l fullpath = fs::path::make(i->second,fusepath_); rv = l::getattr(fullpath,followsymlinks_,st_); - if((rv == -1) && (errno == ENOENT)) - { - cache.erase(fusepath_); - continue; - } + if((rv == -1) && (errno != ENOENT)) + break; + + cache.erase(fusepath_); } if(rv == -1)