diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-09-22 19:30:17 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-09-22 19:30:17 +0000 |
commit | eafdf42a69455f49fc8f935270fec7550bbc4e7c (patch) | |
tree | 01903a422a219c091b4a9976721c3b6c0d1f009c /lib/fuse.c | |
parent | 026e0f46a9ce978b91d0ebcdd0838a3e6687d60f (diff) | |
download | libfuse-eafdf42a69455f49fc8f935270fec7550bbc4e7c.tar.gz |
fix compat bugs in lowlevel interface
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2777,6 +2777,7 @@ void fuse_destroy(struct fuse *f) fuse_delete_context_key(); } +#include "fuse_common_compat.h" #include "fuse_compat.h" static struct fuse *fuse_new_common_compat25(int fd, struct fuse_args *args, @@ -2802,7 +2803,7 @@ static int fuse_compat_open(struct fuse *f, fuse_req_t req, char *path, if (!f->compat || f->compat >= 25) err = fuse_do_open(f, req, path, fi); else if (f->compat == 22) { - struct fuse_file_info_compat22 tmp; + struct fuse_file_info_compat tmp; memcpy(&tmp, fi, sizeof(tmp)); fuse_prepare_interrupt(f, req, &d); err = ((struct fuse_operations_compat22 *) &f->op)->open(path, &tmp); @@ -2838,7 +2839,7 @@ static int fuse_compat_opendir(struct fuse *f, fuse_req_t req, char *path, return fuse_do_opendir(f, req, path, fi); } else { int err; - struct fuse_file_info_compat22 tmp; + struct fuse_file_info_compat tmp; struct fuse_intr_data d; memcpy(&tmp, fi, sizeof(tmp)); fuse_prepare_interrupt(f, req, &d); |