LWN.net Logo

Nanny state frivolity

Nanny state frivolity

Posted Apr 17, 2009 20:12 UTC (Fri) by nix (subscriber, #2304)
In reply to: Nanny state frivolity by dw
Parent article: Shortening the rope

rm --preserve-root doesn't do a strcmp(), it compares the device and inode
number of the to-be-removed entity with that of /.

(Why does nobody read the source? It's there and not hard to read: this
took me less than a minute to figure out. Is unfounded speculation just
more fun or something?)


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds