From 01f49e9d4b3557f18038d5c492ddae166ca20019 Mon Sep 17 00:00:00 2001 From: Tuupertunut Date: Fri, 27 May 2022 03:17:36 +0300 Subject: [PATCH] Fix setting attributes on file without permissions Signed-off-by: Tuupertunut --- main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/main.c b/main.c index 38aed0d..68680ab 100644 --- a/main.c +++ b/main.c @@ -3984,10 +3984,7 @@ ovl_setattr (fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, stru case S_IFREG: cleaned_up_fd = fd = TEMP_FAILURE_RETRY (safe_openat (dirfd, node->path, O_NOFOLLOW|O_NONBLOCK|(to_set & FUSE_SET_ATTR_SIZE ? O_WRONLY : 0), 0)); if (fd < 0) - { - fuse_reply_err (req, errno); - return; - } + strconcat3 (path, PATH_MAX, get_upper_layer (lo)->path, "/", node->path); break; case S_IFDIR: @@ -3995,10 +3992,7 @@ ovl_setattr (fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, stru if (fd < 0) { if (errno != ELOOP) - { - fuse_reply_err (req, errno); - return; - } + strconcat3 (path, PATH_MAX, get_upper_layer (lo)->path, "/", node->path); } break;