If no $LOG/setuid.today exists (f.e. first time to run), put

warning and make it, all following commands fails in old case
This commit is contained in:
Andrey A. Chernov 1995-09-15 00:22:31 +00:00
parent 44ac4ef672
commit 44436d27fe

View File

@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)security 5.3 (Berkeley) 5/28/91
# $Id: security,v 1.7 1995/01/14 13:23:50 ats Exp $
# $Id: security,v 1.8 1995/05/27 01:37:44 ache Exp $
#
PATH=/sbin:/bin:/usr/bin
@ -27,6 +27,10 @@ while test $# -ge 1; do
find $mount -xdev \( -perm -u+s -or -perm -g+s \) | sort
done | xargs -n 20 ls -lgTd > $TMP
if [ ! -f $LOG/setuid.today ] ; then
echo "no $LOG/setuid.today"
cp $TMP $LOG/setuid.today
fi
if cmp $LOG/setuid.today $TMP >/dev/null; then :; else
echo "$host setuid/device diffs:"
diff -b $LOG/setuid.today $TMP