aboutsummaryrefslogtreecommitdiff
path: root/src/lib9p
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-07-04 12:23:37 -0400
committerRuss Cox <rsc@swtch.com>2008-07-04 12:23:37 -0400
commit0529411caa88bb5fbdd65d460c0b4042742e23de (patch)
tree16521f28eca3c536be6baddc9ba77166aa559ce3 /src/lib9p
parent07125953eaf9e81fdb498749d4ccb0305e5a5343 (diff)
downloadplan9port-0529411caa88bb5fbdd65d460c0b4042742e23de.tar.gz
plan9port-0529411caa88bb5fbdd65d460c0b4042742e23de.tar.bz2
plan9port-0529411caa88bb5fbdd65d460c0b4042742e23de.zip
lib9p: update diroffset correctly on rewind
Diffstat (limited to 'src/lib9p')
-rw-r--r--src/lib9p/srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9p/srv.c b/src/lib9p/srv.c
index 7393b3c2..0e7c3113 100644
--- a/src/lib9p/srv.c
+++ b/src/lib9p/srv.c
@@ -505,7 +505,7 @@ static void
rread(Req *r, char *error)
{
if(error==nil && (r->fid->qid.type&QTDIR))
- r->fid->diroffset += r->ofcall.count;
+ r->fid->diroffset = r->ifcall.offset + r->ofcall.count;
}
static void