summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/fuse/fuseDirs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp
index c8b5a16..17054d2 100644
--- a/netfs/fuse/fuseDirs.cpp
+++ b/netfs/fuse/fuseDirs.cpp
@@ -75,11 +75,11 @@ NetFS::FuseApp::readdir(const char * p, void * buf, fuse_fill_dir_t filler, off_
std::string epath = path + "/" + e;
auto asga = volume->begin_getattr(reqEnv(), epath);
statCache.add(epath,
- [asga,this]() {
+ StatCache::Factory([asga,this]() {
struct stat s;
s << AttrSource { volume->end_getattr(asga), userLookup, groupLookup };
return s;
- }, time_t(NULL) + 2);
+ }), time_t(NULL) + 2);
}
return 0;
}