diff options
author | Simon Rettberg | 2024-05-13 15:00:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-13 18:26:42 +0200 |
commit | 4c1b30bf718ac49a6666bdc290e8107fa4e6a60f (patch) | |
tree | bddf7ee826d706daba458130260d335a19afa707 | |
parent | [FUSE] Don't exit on SIGQUIT, just stop uploading (diff) | |
download | dnbd3-4c1b30bf718ac49a6666bdc290e8107fa4e6a60f.tar.gz dnbd3-4c1b30bf718ac49a6666bdc290e8107fa4e6a60f.tar.xz dnbd3-4c1b30bf718ac49a6666bdc290e8107fa4e6a60f.zip |
[FUSE] Fix hang when trying to chmod/chown /img or /status
No reply was ever given for unhandled requests. Return EACCES.
-rw-r--r-- | src/fuse/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |