mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
Fixed a but on walk where fid == newfid.
This commit is contained in:
parent
9fd22b12f9
commit
7b0ecf7cf8
12
fs.c
12
fs.c
@ -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);
|
||||
while((f = nf)) {
|
||||
nf = nf->next;
|
||||
free_file(f);
|
||||
}
|
||||
}
|
||||
r->newfid->aux = f;
|
||||
}else
|
||||
r->newfid->aux = f;
|
||||
r->ofcall.nwqid = i;
|
||||
respond(r, nil);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user