diff options
author | rsc <devnull@localhost> | 2006-02-14 19:41:02 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-02-14 19:41:02 +0000 |
commit | 1bb8ccf14e1c405e8bd038b80b286e233c4a1556 (patch) | |
tree | 09c232b777a288de8a95bf5ed67af3f6597d2c4d /src/cmd/9p.c | |
parent | 973131adc41df0cae90eb35431047b697294809f (diff) | |
download | plan9port-1bb8ccf14e1c405e8bd038b80b286e233c4a1556.tar.gz plan9port-1bb8ccf14e1c405e8bd038b80b286e233c4a1556.tar.bz2 plan9port-1bb8ccf14e1c405e8bd038b80b286e233c4a1556.zip |
seek back in rdwr
Diffstat (limited to 'src/cmd/9p.c')
-rw-r--r-- | src/cmd/9p.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/9p.c b/src/cmd/9p.c index 3d3043d0..4d19e5e6 100644 --- a/src/cmd/9p.c +++ b/src/cmd/9p.c @@ -306,6 +306,7 @@ xrdwr(int argc, char **argv) fid = xopen(argv[0], ORDWR); for(;;){ + fsseek(fid, 0, 0); if((n = fsread(fid, buf, sizeof buf)) < 0) fprint(2, "read: %r\n"); else{ |