From 383a9dfa0011cce8b5619a6a3f6b69142f8388b8 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 10 Dec 2002 14:54:57 +0000 Subject: release() changes --- lib/fuse.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/fuse.c') 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, -- cgit v1.2.3