[TUHS] There is turmoil in Linux-land - When did rm first avoid going upwards?
Arthur Krewat
krewat at kilonet.net
Tue Apr 25 07:59:33 AEST 2017
Having done exactly this with one of my own systems back in the early
90's, I decided to test this out - I have some Solaris 8 VM's that I was
able to clone easily and rip off the networking.
kilowatt# mkdir a
kilowatt# cd a
kilowatt# touch .a .b .c
kilowatt# rm -rf .*
kilowatt# ls -a
. ..
kilowatt# rm -rf .*
rm of . is not allowed
rm of .. is not allowed
Now I need to go check some of the other VM's I have of early SVR4... I
think it was either SunOS or an early SVR4 where this had catastrophic
results :)
On 4/24/2017 5:48 PM, Alec Muffett wrote:
> Off-topic but funny: I have personally witnessed a 4.1BSD Vax where
> someone accidentally did "mv . .." (or possibly "mv .. .") and it
> worked, with resulting horrible mess.
>
> -a
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170424/3d2f4e08/attachment.html>
More information about the TUHS
mailing list