wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

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:
cmd/wm/fs.c | 4++--
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 {