# HG changeset patch # User Eris Caffee # Date 1305703339 18000 # Node ID 21f705b2b8c92eb3190fd7ae30cffa61c10ec799 # Parent 58e218e2b4ac0f747d9d82f9f2b8cbe42c362fb6 Fixed a couple of comments. diff -r 58e218e2b4ac -r 21f705b2b8c9 rm-limit.pl --- a/rm-limit.pl Tue May 17 22:12:59 2011 -0500 +++ b/rm-limit.pl Wed May 18 02:22:19 2011 -0500 @@ -23,17 +23,19 @@ # # This scripts has 3 lists: # A blacklist of directories from which this script will absolutely refuse -# to delete anything. +# to delete anything. Individual files may be listed too. # A whitelist of directories from which deletions are always allowed. +# Individual files may be listed too. # A whitelist of directories from which deletions are always allowed only if -# they occur in subdirectories of the listed main directory. +# they occur in subdirectories of the listed main directory. Only +# directories may be listed. No individual files allowed here. # # Any file not specified as whitelisted or blacklisted will generate a # warning prompt and offer the user a chance to cancel the deletion. # # The purpose is to help prevent accidental deletion of important system files. # -# To use this, install this script somewher ein your path and add something +# To use this, install this script somewhere in your path and add something # like the following to your default login scripts, such as the .bash_profile # file of the root user. # @@ -43,13 +45,13 @@ # fi # # unalias rm 2> /dev/null -# alias rm="rm-limit ${RM_Opts}" +# alias rm="rm-limit.pl ${RM_Opts}" # # By installing this as an alias for rm that is set up in .bash_profile, it will # only be active during interactive logins, and not when scripts are running. # -# Last update: 2011/05/17 22:12:09 +# Last update: 2011/05/18 02:21:42 use strict; use warnings;