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

Joris giovannangeli via Redmine bugtracker-admin at leaf.dragonflybsd.org
Sat Apr 13 07:13:54 PDT 2013


Issue #2546 has been reported by jorisgio.

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