From a87b8fdb4be4cc4b29eacf12a58db6606a5a8846 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 13 Feb 2024 23:46:07 -0600 Subject: [PATCH] fuse_getattr.cpp --- src/fuse_getattr.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/fuse_getattr.cpp b/src/fuse_getattr.cpp index 2e0e5475..40726230 100644 --- a/src/fuse_getattr.cpp +++ b/src/fuse_getattr.cpp @@ -153,28 +153,7 @@ namespace l fullpath = fs::path::make(i->second,fusepath_); - switch(followsymlinks_) - { - case FollowSymlinks::ENUM::NEVER: - rv = fs::lstat(fullpath,st_); - break; - case FollowSymlinks::ENUM::DIRECTORY: - rv = fs::lstat(fullpath,st_); - if(S_ISLNK(st_->st_mode)) - l::set_stat_if_leads_to_dir(fullpath,st_); - break; - case FollowSymlinks::ENUM::REGULAR: - rv = fs::lstat(fullpath,st_); - if(S_ISLNK(st_->st_mode)) - l::set_stat_if_leads_to_reg(fullpath,st_); - break; - case FollowSymlinks::ENUM::ALL: - rv = fs::stat(fullpath,st_); - if(rv != 0) - rv = fs::lstat(fullpath,st_); - break; - } - + rv = l::getattr(fullpath,followsymlinks_,st_); if(rv == -1) { cache.erase(fusepath_);