mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
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:
parent
94677ae961
commit
1178a7a801
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user