mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fuse_getattr.cpp
This commit is contained in:
parent
2c2317139e
commit
34c5dd1fa5
1 changed files with 2 additions and 2 deletions
|
|
@ -146,12 +146,12 @@ _getattr(const Policy::Search &searchFunc_,
|
|||
break;
|
||||
case FollowSymlinks::ENUM::DIRECTORY:
|
||||
rv = fs::lstat(fullpath,st_);
|
||||
if((rv > 0) && S_ISLNK(st_->st_mode))
|
||||
if((rv >= 0) && S_ISLNK(st_->st_mode))
|
||||
::_set_stat_if_leads_to_dir(fullpath,st_);
|
||||
break;
|
||||
case FollowSymlinks::ENUM::REGULAR:
|
||||
rv = fs::lstat(fullpath,st_);
|
||||
if(S_ISLNK(st_->st_mode))
|
||||
if((rv >= 0) && S_ISLNK(st_->st_mode))
|
||||
::_set_stat_if_leads_to_reg(fullpath,st_);
|
||||
break;
|
||||
case FollowSymlinks::ENUM::ALL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue