From 4c1b30bf718ac49a6666bdc290e8107fa4e6a60f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 13 May 2024 15:00:54 +0200 Subject: [FUSE] Fix hang when trying to chmod/chown /img or /status No reply was ever given for unhandled requests. Return EACCES. --- src/fuse/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fuse/main.c b/src/fuse/main.c index 3269d15..f76cfb6 100644 --- a/src/fuse/main.c +++ b/src/fuse/main.c @@ -307,8 +307,10 @@ static void image_ll_setattr( fuse_req_t req, fuse_ino_t ino, struct stat *attr, return; } if (to_set & FUSE_SET_ATTR_SIZE) { - cowfile_setSize( req, attr->st_size, ino, fi); + cowfile_setSize( req, attr->st_size, ino, fi); + return; } + fuse_reply_error( req, EACCES ); } /* map the implemented fuse operations */ -- cgit v1.2.3-55-g7522