Re: rm -I patch (Re: Protection from the dreaded "rm -fr /")

看板DFBSD_submit作者時間21年前 (2004/10/06 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
-On [20041006 08:52], Matthew Dillon (dillon@apollo.backplane.com) wrote: > But the worst occured on one of the SGI boxes where rm decided to > follow symlinks in a particular situation (I forget exactly which), and > a sysop trying to remove a user's directory wound up destroying, well, > a huge amount of data before he realized something was wrong and hit > ^C. I am not sure which OS it was I was messing with recently, could've been Solaris or Linux, but I did a chown with -R on a dir, and it happily did the ascending through .. as well. :-\ Spoilt by BSD... -- Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono Free Tibet! http://www.savetibet.org/ | http://ashemedai.deviantart.com/ http://www.tendra.org/ | http://www.in-nomine.org/ I dream of gardens in the desert sand...
文章代碼(AID): #11Ows700 (DFBSD_submit)
文章代碼(AID): #11Ows700 (DFBSD_submit)