diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-12 21:34:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-12 21:34:48 +0000 |
commit | fb422108492ba999fe52e4a73aa8f9ab32ae065a (patch) | |
tree | 5c464d0f5336098ac082cf0ff56ae9b2130115ef | |
parent | a7f0b8edb12e893000d3d9a31434ac79622697a3 (diff) |
still print about ugly files; from Todd.Miller@cs.colorado.edu
-rw-r--r-- | etc/daily | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/etc/daily b/etc/daily index 3e8bd369bee..6033a95ad55 100644 --- a/etc/daily +++ b/etc/daily @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: daily,v 1.6 1996/06/17 09:09:39 deraadt Exp $ +# $OpenBSD: daily,v 1.7 1996/07/12 21:34:47 deraadt Exp $ # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local host=`hostname -s` @@ -44,13 +44,14 @@ echo "Removing scratch and junk files:" # find . ! -name . -mtime +7 -exec rm -f -- {} \; ; } #fi -# XXX NOT REMOVING UNTIL SECURITY BUG IS FIXED -#cd /tmp -#TMP=daily.$$ -#find / \( ! -fstype local -o -fstype rdonly -o -fstype fdesc \ -# -o -fstype kernfs -o -fstype procfs \) -a -prune -o \ -# -name 'lost+found' -a -prune -o \ -# -name '*.core' -a -print -o \ +cd /tmp +TMP=daily.$$ +rm -f $TMP +echo -n > $TMP +find / \( ! -fstype local -o -fstype rdonly -o -fstype fdesc \ + -o -fstype kernfs -o -fstype procfs \) -a -prune -o \ + -name 'lost+found' -a -prune -o \ + -name '*.core' -a -print > $TMP # \( -name '[#,]*' -o -name '.#*' -o -name a.out \ # -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \ # -a -atime +3 -exec rm -f -- {} \; -a -print > $TMP @@ -59,9 +60,9 @@ echo "" echo "Possible core dumps:" egrep '\.core' $TMP -echo "" -echo "Deleted files:" -egrep -v '\.core' $TMP +#echo "" +#echo "Deleted files:" +#egrep -v '\.core' $TMP rm -f $TMP |