Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!cmcl2!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.bugs.usg Subject: SVR2 rm -r bug Message-ID: <861@brl-tgr.ARPA> Date: Wed, 18-Dec-85 18:59:26 EST Article-I.D.: brl-tgr.861 Posted: Wed Dec 18 18:59:26 1985 Date-Received: Fri, 20-Dec-85 05:06:57 EST Distribution: net Organization: Ballistic Research Lab Lines: 22 I think the SVR2 "rm" utility has a serious bug; since my version has been heavily modified, I'm not entirely sure about the unmodified version. To see if you have the bug, try the following: $ mkdir foo foo/bar $ touch xxx foo/xxx foo/bar/xxx $ rm -r foo/bar xxx $ ls -R xxx foo You should see that "xxx", "foo/bar/xxx", and "foo/bar" no longer exist and "foo" and "foo/xxx" still exist. Any other result indicates that your "rm" has the bug. There is also a separate bug in the code that checks for attempts to "rm ..". The fixes for these were too extensive to try to post; if you have received the BRL UNIX System V emulation for 4.2BSD before this posting, send me a note and I'll mail you the corrected source.