summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-04-18 19:17:11 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-04-19 00:27:25 +0100
commit8f010be4b16144f4bfecfb8fe282e4654d896db4 (patch)
tree566bdc07f9b50793c4295e7a36d429ee3768b17e
parentFix error checking of readdir call (diff)
downloadnetfs-8f010be4b16144f4bfecfb8fe282e4654d896db4.tar.bz2
netfs-8f010be4b16144f4bfecfb8fe282e4654d896db4.tar.xz
netfs-8f010be4b16144f4bfecfb8fe282e4654d896db4.zip
Move construct ReqEnv from mapper values
-rw-r--r--netfs/fuse/fuseApp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp
index a206e60..159febf 100644
--- a/netfs/fuse/fuseApp.cpp
+++ b/netfs/fuse/fuseApp.cpp
@@ -297,6 +297,6 @@ NetFS::ReqEnv
NetFS::FuseApp::reqEnv()
{
struct fuse_context * c = fuse_get_context();
- const auto t = converter.mapper->mapFileSystem(safe {c->uid}, safe {c->gid});
- return {t.username, t.groupname};
+ auto t = converter.mapper->mapFileSystem(safe {c->uid}, safe {c->gid});
+ return {std::move(t.username), std::move(t.groupname)};
}