Fixed setting opening contexts for plugins

The opening context was incorrectly passed to plugins by lowntfs-3g

(contributed by Eric Biggers)
This commit is contained in:
Jean-Pierre André 2017-02-11 10:44:02 +01:00
parent 94677ae961
commit 1178a7a801

View File

@ -1568,7 +1568,7 @@ static void ntfs_fuse_read(fuse_req_t req, fuse_ino_t ino, size_t size,
REPARSE_POINT *reparse;
struct open_file *of;
of = (struct open_file*)fi;
of = (struct open_file*)(long)fi->fh;
res = CALL_REPARSE_PLUGIN(ni, read, buf, size, offset, &of->fi);
if (res >= 0) {
goto stamps;
@ -1649,7 +1649,7 @@ static void ntfs_fuse_write(fuse_req_t req, fuse_ino_t ino, const char *buf,
REPARSE_POINT *reparse;
struct open_file *of;
of = (struct open_file*)fi;
of = (struct open_file*)(long)fi->fh;
res = CALL_REPARSE_PLUGIN(ni, write, buf, size, offset,
&of->fi);
if (res >= 0) {