aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-06-23 13:54:33 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-06-23 13:54:33 +0000
commitb32105803093b758df251dcdfd5dc4d07636dfd1 (patch)
treeec0ad351828f5bcc58430fdba6ba21bedd9d7071
parente79dc7eea007ff1040939293294b59fff9df3179 (diff)
downloadlibfuse-b32105803093b758df251dcdfd5dc4d07636dfd1.tar.gz
fix
-rw-r--r--ChangeLog2
-rw-r--r--lib/fuse.c17
2 files changed, 9 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e09c3f..fd1a1eb 100644
--- 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>
diff --git a/lib/fuse.c b/lib/fuse.c
index eeae295..fe392f3 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -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);
+ }
}
}