From bdc140740f73757af3d31c26d35392a80fde378a Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sat, 13 Apr 2024 08:49:46 -0500 Subject: [PATCH] fuse_open.cpp --- src/fuse_open.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fuse_open.cpp b/src/fuse_open.cpp index 0f03d24d..1f6fd706 100644 --- a/src/fuse_open.cpp +++ b/src/fuse_open.cpp @@ -324,7 +324,8 @@ namespace FUSE proc_filepath = fmt::format("/proc/self/fd/{}",ffi_->fd); fd = fs::open(proc_filepath,ffi_->flags); - + if(fd == -1) + return -errno; }