[DragonFlyBSD - Submit #2546] Add an option to rm to prevent recursive rm crossing mount points

Sascha Wildner via Redmine bugtracker-admin at leaf.dragonflybsd.org
Mon Apr 15 13:29:58 PDT 2013


Issue #2546 has been updated by swildner.


Pushed, thanks!

----------------------------------------
Submit #2546: Add an option to rm to prevent recursive rm crossing mount points
http://bugs.dragonflybsd.org/issues/2546

Author: jorisgio
Status: New
Priority: Normal
Assignee: swildner
Category: 
Target version: 


With null mounts, rm -r in root can be dangerous. GNU rm as an option for that :

       --one-file-system
              when removing a  hierarchy  recursively,  skip
              any directory that is on a file system differ‐
              ent from that  of  the  corresponding  command
              line argument

Here is an easy patch to add a similar option to rm. 


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list