From f647b780318b8a8358ba5dca5c6b7721f4753333 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 12 Apr 2024 09:46:35 -0500 Subject: [PATCH] fuse_open.cpp --- src/fuse_open.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fuse_open.cpp b/src/fuse_open.cpp index 5b92c65f..0c62285e 100644 --- a/src/fuse_open.cpp +++ b/src/fuse_open.cpp @@ -344,11 +344,12 @@ namespace FUSE open(const char *fusepath_, fuse_file_info_t *ffi_) { + std::mutex *m; pt.emplace(); pt.visit(fusepath_, - [](const PTMap::value_type &x_) + [&](const PTMap::value_type &x_) { - x_.second.mutex.lock(); + m = x_.second.mutex; }); return open2(fusepath_,ffi_);