+2005-11-28 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix bug in 32-bit file handle compatibility
+
2005-11-27 Miklos Szeredi <miklos@szeredi.hu>
* Block TERM, INT, HUP and QUIT signals in all but the main
* libfuse: added 'negative_timeout' option: specifies how much
negative entries should be cached. Default is zero, to be
- compatible with prior versions.
+ compatible with prior versions
2005-11-22 Miklos Szeredi <miklos@szeredi.hu>
req->in.numargs = 0;
req->in.h.opcode = FUSE_STATFS;
req->out.numargs = 1;
- req->out.args[0].size =
+ req->out.args[0].size =
fc->minor < 4 ? FUSE_COMPAT_STATFS_SIZE : sizeof(outarg);
req->out.args[0].value = &outarg;
request_send(fc, req);
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;
}
fi->fh = tmp.fh;
return err;
} else
- return
+ return
((struct fuse_operations_compat2 *) &f->op)->open(path, fi->flags);
}
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,
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)
struct mntent ent;
FILE *fp;
- if (check_name(fsname) == -1 || check_name(mnt) == -1 ||
+ if (check_name(fsname) == -1 || check_name(mnt) == -1 ||
check_name(type) == -1 || check_name(opts) == -1)
return -1;