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)