diff options
author | 2004-06-23 13:54:33 +0000 | |
---|---|---|
committer | 2004-06-23 13:54:33 +0000 | |
commit | b32105803093b758df251dcdfd5dc4d07636dfd1 (patch) | |
tree | ec0ad351828f5bcc58430fdba6ba21bedd9d7071 /lib | |
parent | e79dc7eea007ff1040939293294b59fff9df3179 (diff) |
fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fuse.c | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -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); + } } } |