Make sure wmiir read /bar/../.. returns with error.

This commit is contained in:
Kris Maglione 2006-06-11 21:56:08 -04:00
parent 797ee8b125
commit 59a06d3c5d

View File

@ -678,8 +678,8 @@ xwalk(IXPConn *c, Fcall *fcall)
if(qsel >= IXP_MAX_WELEM)
break;
if(!strncmp(fcall->wname[nwqid], "..", 3)) {
if(qsel)
qsel--;
if(!qsel--)
return Enofile;
qid = &wqid[qsel];
}
else {