a671e01be7
Please note: I'm not activating this until I successfully get the changes back into my local CVS repository to do one final check. Early adopters are welcome to send comments.
16 lines
427 B
Bash
Executable File
16 lines
427 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $Id$
|
|
#
|
|
# This is a security hole, never use 'find' on a public directory
|
|
# with -exec rm -f as root. This can be exploited to delete any file
|
|
# on the system.
|
|
#
|
|
|
|
exit 0 # do not run by default
|
|
|
|
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 -- {} \;
|