commit | 765f371cf40c67ccca3033b05aa052de0145f999 | [log] [tgz] |
---|---|---|
author | Dmitriy Ivanov <dimitry@google.com> | Wed Dec 10 18:58:56 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Dec 10 18:58:56 2014 +0000 |
tree | baac90f8df472a0e78a007bc72f3b86419ac4a8b | |
parent | 5eb431180bcc0fb153d2c821c6735aadcda02ae5 [diff] | |
parent | 052fc0a225e5e866d4c20a8d5baecbc3dd4a62eb [diff] |
Merge "Print ASCII near register for all archs"
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 @@ 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; }