fix
authorMiklos Szeredi <miklos@szeredi.hu>
Wed, 23 Jun 2004 13:54:33 +0000 (13:54 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Wed, 23 Jun 2004 13:54:33 +0000 (13:54 +0000)
ChangeLog
lib/fuse.c

index 5e09c3f3b44cdb1dcdbe986a1572cddf98dad539..fd1a1eb2b9f02cce1274722cc3f1c88e593a3986 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 2004-06-23  Miklos Szeredi <mszeredi@inf.bme.hu>
 
        * Fix locking bugs
+
+       * Don't send reply to RELEASE
        
 2004-06-22  Miklos Szeredi <mszeredi@inf.bme.hu>
 
index eeae295a9d6fe689a12767226cca8afe4d5f93e6..fe392f3eeed547e70a751dd7b88bf09c8efc6fcb 100644 (file)
@@ -865,17 +865,14 @@ static void do_flush(struct fuse *f, struct fuse_in_header *in)
 static void do_release(struct fuse *f, struct fuse_in_header *in,
                        struct fuse_open_in *arg)
 {
-    char *path;
-
-    if (!f->op.release) {
-        send_reply(f, in, -ENOSYS, NULL, 0);
-        return;
-    }
+    if (f->op.release) {
+        char *path;
 
-    path = get_path(f, in->ino);
-    if (path != NULL) {
-        f->op.release(path, arg->flags);
-        free(path);
+        path = get_path(f, in->ino);
+        if (path != NULL) {
+            f->op.release(path, arg->flags);
+            free(path);
+        }
     }
 }