diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-18 19:17:11 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-19 00:27:25 +0100 |
commit | 8f010be4b16144f4bfecfb8fe282e4654d896db4 (patch) | |
tree | 566bdc07f9b50793c4295e7a36d429ee3768b17e | |
parent | Fix error checking of readdir call (diff) | |
download | netfs-8f010be4b16144f4bfecfb8fe282e4654d896db4.tar.bz2 netfs-8f010be4b16144f4bfecfb8fe282e4654d896db4.tar.xz netfs-8f010be4b16144f4bfecfb8fe282e4654d896db4.zip |
Move construct ReqEnv from mapper values
-rw-r--r-- | netfs/fuse/fuseApp.cpp | 4 |
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)}; } |