diff options
-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 */ |