commit 59a06d3c5dbf175fbfabad5f5f8e468878ffe488
parent 797ee8b125a070fd6e071a19b49ef89609762c09
Author: Kris Maglione <bsdaemon@wmii.de>
Date: Sun, 11 Jun 2006 21:56:08 -0400
Make sure wmiir read /bar/../.. returns with error.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c
@@ -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 {