Fix the (commented out) example to prune the tree from core etc. files:

don't ever attempt to prune readonly filesystems, and properly quote
*.core against the shell.
This commit is contained in:
Joerg Wunsch 1997-03-06 10:55:46 +00:00
parent 8375be7ed6
commit 7488674393
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23444

View File

@ -25,8 +25,8 @@ cd /tmp
# with -exec rm -f as root. This can be exploited to delete any file
# on the system.
#
#find / ! -fstype local -a -prune -o \
# \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name *.core \
#find / ! \( -fstype local -o -fstype rdonly \) -a -prune -o \
# \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name '*.core' \
# -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \
# -a -atime +3 -exec rm -f -- {} \;
#