summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/fuse/fuseDirs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netfs/fuse/fuseDirs.cpp b/netfs/fuse/fuseDirs.cpp
index d23f5d7..b03282e 100644
--- a/netfs/fuse/fuseDirs.cpp
+++ b/netfs/fuse/fuseDirs.cpp
@@ -46,15 +46,15 @@ namespace NetFS {
{
try {
auto od = getProxy<OpenDirPtr>(fi->fh);
- std::string path(p);
+ const std::string path(p);
auto expiry = time(nullptr) + 2;
if (flags == FUSE_READDIR_PLUS) {
for (const auto & e : od->remote->listdir()) {
if (auto stat = converter.convert(e.second); stat.st_mode) {
filler(buf, e.first.c_str(), nullptr, 0, FUSE_FILL_DIR_PLUS);
- std::string k(path + e.first);
+ const std::string k(path + e.first);
statCache.remove(k);
- statCache.add(k, std::move(stat), expiry);
+ statCache.add(k, stat, expiry);
}
}
}