Browse Source

func_getattr_newest.cpp

getattr
Antonio SJ Musumeci 4 weeks ago
parent
commit
13e61e6609
  1. 10
      src/func_getattr_newest.cpp

10
src/func_getattr_newest.cpp

@ -26,16 +26,10 @@ Func2::GetattrNewest::process(const Branches &branches_,
if(rv == -1) if(rv == -1)
continue; continue;
if(st_->st_ino == 0)
{
*st_ = st;
if(!TimeSpec::is_newer(tmp_st.st_mtim,st_->st_mtim))
continue; continue;
}
st_->st_atim = TimeSpec::newest(st_->st_atim,st.st_atim);
st_->st_ctim = TimeSpec::newest(st_->st_ctim,st.st_ctim);
st_->st_mtim = TimeSpec::newest(st_->st_mtim,st.st_mtim);
st_->st_nlink += st.st_nlink;
*st_ = st;
} }
if(st_->st_ino == 0) if(st_->st_ino == 0)

Loading…
Cancel
Save