aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9pfuse/main.c')
-rw-r--r--src/cmd/9pfuse/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c
index 789c963b..37064d4e 100644
--- a/src/cmd/9pfuse/main.c
+++ b/src/cmd/9pfuse/main.c
@@ -777,7 +777,7 @@ fuseread(FuseMsg *m)
if(n > fusemaxwrite)
n = fusemaxwrite;
buf = emalloc(n);
- n = fsread(fid, buf, n);
+ n = fspread(fid, buf, n, in->offset);
if(n < 0){
free(buf);
replyfuseerrstr(m);
@@ -904,7 +904,7 @@ fusewrite(FuseMsg *m)
replyfuseerrno(m, EINVAL);
return;
}
- n = fswrite(fid, a, in->size);
+ n = fspwrite(fid, a, in->size, in->offset);
if(n < 0){
replyfuseerrstr(m);
return;