plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 1bb8ccf14e1c405e8bd038b80b286e233c4a1556
parent 973131adc41df0cae90eb35431047b697294809f
Author: rsc <devnull@localhost>
Date:   Tue, 14 Feb 2006 19:41:02 +0000

seek back in rdwr

Diffstat:
Msrc/cmd/9p.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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{