summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-03-06 10:55:46 +0000
committerjoerg <joerg@FreeBSD.org>1997-03-06 10:55:46 +0000
commite0dfb66e0e2b3ed4336e404f52ea07a7dae706dc (patch)
tree71a4b32038b6cb9717346dd485152aaf7846f653 /etc
parent940fd156aef284cde69149f9ba8eddeff68902cf (diff)
downloadFreeBSD-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.
Diffstat (limited to 'etc')
-rw-r--r--etc/daily4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/daily b/etc/daily
index 3bb8318..059a716 100644
--- a/etc/daily
+++ b/etc/daily
@@ -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 -- {} \;
#
OpenPOWER on IntegriCloud