From 79e9f2fb9a143acfe5314fa699bc2de0170e872d Mon Sep 17 00:00:00 2001 From: fedir Date: Tue, 24 Jun 2025 13:18:27 +0200 Subject: [PATCH] Fixed permission on access problem. --- src/fuse_operations.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fuse_operations.c b/src/fuse_operations.c index a2ea0df..ceb88d7 100644 --- a/src/fuse_operations.c +++ b/src/fuse_operations.c @@ -112,7 +112,11 @@ static int xmp_access(const char *path, int mask) { // if mask is F_OK, then we don't need to check the permissions // (is that possible?) + // + // EDIT: now lie to the program by not telling it whether it can actually + // access the file. + /* if (mask != F_OK) { struct process_info proc_info; struct fuse_context *context = fuse_get_context(); @@ -129,6 +133,7 @@ static int xmp_access(const char *path, int mask) { free((void *)proc_info.name); } + */ res = source_access(path, mask);