Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8be3ad9 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am 5eb43118: Merge "Allow updates for open file descriptors"

* commit '5eb43118':
  Allow updates for open file descriptors
parents 0d43d918 5eb43118
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -904,7 +904,9 @@ static int handle_setattr(struct fuse* fuse, struct fuse_handler* handler,
    if (!node) {
        return -ENOENT;
    }
    if (!check_caller_access_to_node(fuse, hdr, node, W_OK, has_rw)) {

    if (!(req->valid & FATTR_FH) &&
            !check_caller_access_to_node(fuse, hdr, node, W_OK, has_rw)) {
        return -EACCES;
    }