tbetter offset handling - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 33baa59ecc75651b3666cef7a5b19eb91840d40c | |
parent 97e85ebf111b332229ad3698e48b635939543a19 | |
Author: rsc | |
Date: Fri, 28 Jan 2005 05:41:12 +0000 better offset handling Diffstat: M src/lib9pclient/fs.c | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) --- | |
diff --git a/src/lib9pclient/fs.c b/src/lib9pclient/fs.c | |
t@@ -259,6 +259,11 @@ _fsgetfid(CFsys *fs) fs->freefid = f->next; fs->ref++; qunlock(&fs->lk); + f->offset = 0; + f->mode = -1; + f->qid.path = 0; + f->qid.vers = 0; + f->qid.type = 0; return f; } |