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

* commit '5eb431180bcc0fb153d2c821c6735aadcda02ae5':
  Allow updates for open file descriptors
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;
     }