changeset: 1918:61356cefaa65
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Feb 20 20:37:16 2007 -0500
summary: Fixed a but on walk where fid == newfid.
diff -r 039612aded00 -r 61356cefaa65 fs.c
--- a/fs.c Tue Feb 20 19:02:34 2007 -0500
+++ b/fs.c Tue Feb 20 20:37:16 2007 -0500
@@ -536,14 +536,14 @@ fs_walk(P9Req *r) {
/* If Fids were ref counted, this could be
* done in their decref function */
if(r->ifcall.fid == r->ifcall.newfid) {
- nf=r->fid->aux;
+ nf = r->fid->aux;
r->fid->aux = f;
- while((nf = f)) {
- f=f->next;
- free_file(nf);
- }
- }
- r->newfid->aux = f;
+ while((f = nf)) {
+ nf = nf->next;
+ free_file(f);
+ }
+ }else
+ r->newfid->aux = f;
r->ofcall.nwqid = i;
respond(r, nil);
}
Received on Wed Feb 21 2007 - 02:40:28 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:34 UTC