diff options
author | joerg <joerg@FreeBSD.org> | 1997-03-06 10:55:46 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-03-06 10:55:46 +0000 |
commit | e0dfb66e0e2b3ed4336e404f52ea07a7dae706dc (patch) | |
tree | 71a4b32038b6cb9717346dd485152aaf7846f653 | |
parent | 940fd156aef284cde69149f9ba8eddeff68902cf (diff) | |
download | FreeBSD-src-e0dfb66e0e2b3ed4336e404f52ea07a7dae706dc.zip FreeBSD-src-e0dfb66e0e2b3ed4336e404f52ea07a7dae706dc.tar.gz |
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.
-rw-r--r-- | etc/daily | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 -- {} \; # |