mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
better offset handling
This commit is contained in:
parent
97e85ebf11
commit
33baa59ecc
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue