Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!otc!metro!ipso!runx!brucee From: brucee@runx.ips.oz (Bruce Evans) Newsgroups: comp.os.minix Subject: rmdir ../bug Message-ID: <1878@runx.ips.oz> Date: 17 Dec 88 06:50:29 GMT Organization: RUNX Un*x Timeshare. Sydney, Australia. Lines: 26 rmdir ../dirname starts removing "." when it shouldn't. The following shell script demonstrates the bug. cd /tmp mkdir q # make a test directory for safety cd q mkdir qq qr # some junk directories cd qq >qqq # a junk file rmdir ../qr # this seems to try to remove "." and fails ls # fails since "." has been removed from /tmp/q/qq # cd .. # fails since ".." has been removed from /tmp/q/qq # last line is commented out since it causes the # shell itself to exit - another bug? cd /tmp/q ls qq/* # fails ls qq # works rm qq/* # fails rm qq/qqq # works - bug is not fatal since explicitly named files # can be copied to safety cd /tmp rmdir q/qq q/qr q # clean up Bruce Evans Internet: brucee@runx.ips.oz.au UUCP: uunet!runx.ips.oz.au!brucee