From ead7f10b6dffea1df237a65180a2300c5a344ebf Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 28 Nov 2005 16:02:27 +0000 Subject: fix --- lib/fuse.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/fuse.c') diff --git a/lib/fuse.c b/lib/fuse.c index ee95664..4146d41 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -1299,6 +1299,7 @@ static struct fuse_dirhandle *get_dirhandle(const struct fuse_file_info *llfi, struct fuse_dirhandle *dh = (struct fuse_dirhandle *) (uintptr_t) llfi->fh; memset(fi, 0, sizeof(struct fuse_file_info)); fi->fh = dh->fh; + fi->fh_old = dh->fh; return dh; } @@ -2064,7 +2065,7 @@ static int fuse_do_open(struct fuse *f, char *path, struct fuse_file_info *fi) fi->fh = tmp.fh; return err; } else - return + return ((struct fuse_operations_compat2 *) &f->op)->open(path, fi->flags); } @@ -2173,7 +2174,7 @@ __asm__(".symver fuse_new_compat22,fuse_new@FUSE_2.2"); static int fuse_do_open(struct fuse *f, char *path, struct fuse_file_info *fi) { - return f->op.open(path, fi); + return f->op.open(path, fi); } static void fuse_do_release(struct fuse *f, char *path, @@ -2185,7 +2186,7 @@ static void fuse_do_release(struct fuse *f, char *path, static int fuse_do_opendir(struct fuse *f, char *path, struct fuse_file_info *fi) { - return f->op.opendir(path, fi); + return f->op.opendir(path, fi); } static int fuse_do_statfs(struct fuse *f, char *path, struct statvfs *buf) -- cgit v1.2.3