diff options
author | Marco Nelissen <marcone@google.com> | 2014-12-10 18:50:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-12-10 18:50:08 +0000 |
commit | 5eb431180bcc0fb153d2c821c6735aadcda02ae5 (patch) | |
tree | d78e5b4f67a2e311afe1d7b92c51894f4edad300 /sdcard | |
parent | 65c06de7629103234bd56392db1a99ee0ab6cb79 (diff) | |
parent | a80f0986bb39ae03ba9014bf4974fc26ae48da70 (diff) | |
download | system_core-5eb431180bcc0fb153d2c821c6735aadcda02ae5.zip system_core-5eb431180bcc0fb153d2c821c6735aadcda02ae5.tar.gz system_core-5eb431180bcc0fb153d2c821c6735aadcda02ae5.tar.bz2 |
Merge "Allow updates for open file descriptors"
Diffstat (limited to 'sdcard')
-rw-r--r-- | sdcard/sdcard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index 2318978..a48906a 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c @@ -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; } |