SVR2 rm -r bug

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Thu Dec 26 06:36:06 AEST 1985


Reports from actual UNIX System V Release 2 sites
indicate that the original SVR2 "rm" does not have
the particular bug that I reported a few days ago.
Sites that have not modified their version of "rm"
in an attempt to fix some of its other problems
should not worry about this one.  Sites that have
picked up the "rm -r" fix reported to the net long
ago should check for the bug.

Known possible rm problems:
1)  "rm -r" fails when total number of chars in path
reaches 100.
2)  "rm -r" fails when directories are deeply nested
(20 levels).
3)  "rm -r" reads directories directly rather than
using directory access library routines.
4)  "rm .. other_args" fails to remove other_args.
5)  "rm -r", when patched to fix problem # 1, may
fail to work in cases like "rm -r foo/bar x".

Recent BRL System V emulation distributions fixed
problems # 1,2,3 but introduced problem # 5.  This
has now been fixed, along with # 4.

I'm beginning to think that the best way to fix
problems in system software is to totally rewrite it.



More information about the Net.bugs.usg mailing list