DragonFly BSD
DragonFly submit List (threaded) for 2013-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Venkatesh Srinivas via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Apr 2013 09:22:36 -0700

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]