Article View: net.bugs.usg
Article #10SVR2 rm -r bug
From: Doug Gwyn <gwyn>
Date: Wed, 18 Dec 1985 23:59
Date: Wed, 18 Dec 1985 23:59
22 lines
1300 bytes
1300 bytes
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.
Technical Details
Message-ID:
<861@brl-tgr.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!cmcl2!seismo!brl-tgr!gwynShow Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!cmcl2!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn <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