is it ok to forbid rm -r x/y/..

Doug Gwyn gwyn at brl-smoke.ARPA
Tue Jan 20 19:33:03 AEST 1987


In article <6427 at allegra.UUCP> mp at allegra.UUCP (Mark Plotnick) writes:
>... I'm tempted to make rm forbid removing anything that has ..
>as its last pathname component ...  What am I overlooking?

Perhaps that "rm" should do as it's told?
(Unless of course it can't work, which is probably
the point of the prohibition on . and ..; I think
those too should not be exempted.)



More information about the Comp.unix.questions mailing list