projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pass flags from device close to l_close
[unix-history]
/
usr
/
src
/
etc
/
daily
diff --git
a/usr/src/etc/daily
b/usr/src/etc/daily
index
8faea3c
..
84b6a5c
100644
(file)
--- a/
usr/src/etc/daily
+++ b/
usr/src/etc/daily
@@
-1,6
+1,6
@@
#!/bin/sh -
#
#!/bin/sh -
#
-# @(#)daily 5.
8
(Berkeley) %G%
+# @(#)daily 5.
12
(Berkeley) %G%
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
host=`hostname -s`
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
host=`hostname -s`
@@
-11,8
+11,8
@@
echo ""
echo "Removing scratch and junk files:"
if [ -d /tmp ]; then
cd /tmp && {
echo "Removing scratch and junk files:"
if [ -d /tmp ]; then
cd /tmp && {
- find .
! -name .
-atime +3 -exec rm -f {} \;
- find .
! -name . -type d -mtime +1 -exec rmdir {} \; >/dev/null 2>&1; }
+ find .
-type f
-atime +3 -exec rm -f {} \;
+ find . ! -name . -type d -mtime +1 -exec rmdir {} \; >/dev/null 2>&1; }
fi
if [ -d /var/tmp ]; then
fi
if [ -d /var/tmp ]; then
@@
-38,7
+38,8
@@
if [ -d /var/rwho ] ; then
fi
cd /tmp
fi
cd /tmp
-find / \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name core \
+find / ! -fstype local -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 {} \;
msgs -c
-o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \
-a -atime +3 -exec rm -f {} \;
msgs -c
@@
-140,3
+141,5
@@
if [ -f /etc/Distfile ]; then
echo "Running rdist:"
rdist -f /etc/Distfile
fi
echo "Running rdist:"
rdist -f /etc/Distfile
fi
+
+sh /etc/security | mail -s "daily insecurity output" root