aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 71959c4..fe670d8 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -755,18 +755,14 @@ static void do_open(struct fuse *f, struct fuse_in_header *in,
static void do_release(struct fuse *f, struct fuse_in_header *in)
{
- int res;
char *path;
- res = -ENOENT;
path = get_path(f, in->ino);
if(path != NULL) {
- res = -ENOSYS;
if(f->op.release)
- res = f->op.release(path);
+ f->op.release(path);
free(path);
}
- send_reply(f, in, res, NULL, 0);
}
static void do_read(struct fuse *f, struct fuse_in_header *in,