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

Venkatesh Srinivas via Redmine bugtracker-admin at leaf.dragonflybsd.org
Sat Apr 13 09:22:36 PDT 2013


Issue #2546 has been updated by vsrinivas.


Looks good.

The same logic is already present in du, for example, so it's nice to have it be in all of the base utilities.


----------------------------------------
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: 
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