News for hackers. Stuff that matters.
Re:Ooops. by jrockway on Thursday June 16, 2011 @10:44AM (#2661431)
I don't remember the exact details, but a few years ago there was a Perl module that did something like:

   my $path = something_that_can_return_undef_on_failure;
   `rm -rf /$path`;
during the execution of its test suite. The author didn't catch it in testing because he never ran "make test" as root (who would?). But people on the Internet ran "make test" as root, with disastrous consequences.
Re:Ooops. by SwellJoe on Thursday June 16, 2011 @11:31AM (#2661662)
I'm not sure if you're being sarcastic with the "who would?" portion of your comment, but doesn't cpan run tests, by default, whenever installing something? And, most people who aren't Perl developers with their own private Perl installation install CPAN modules as root, so they are available to all users. So, to answer the question seriously: Most people.
Re:Ooops. by jrockway on Saturday June 18, 2011 @08:51AM (#2668526)
Uh, the cpan client runs "make install" as root, not "make test".
Re:Ooops. by tripa on Thursday June 16, 2011 @12:09PM (#2661863)
Re:Ooops. by floriancargoet on Thursday June 16, 2011 @11:46AM (#2661727)
$ rm -rf /

rm: it is dangerous to operate recursively on `/'

rm: use --no-preserve-root to override this failsafe

Re:Ooops. by mootothemax on Thursday June 16, 2011 @11:54AM (#2661772)
rm: use --no-preserve-root to override this failsafe

Brilliant, at long last at least a bit of protection! :) Sadly, I can still remember doing this to my one of my first Linux installs, albeit via the classic:

rm -fr .*

On the plus side, that day I learned one hell of a lot about how Linux works ;)