From 44436d27fe1e900f369401e44edd34255243d3d7 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 15 Sep 1995 00:22:31 +0000 Subject: [PATCH] If no $LOG/setuid.today exists (f.e. first time to run), put warning and make it, all following commands fails in old case --- etc/security | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/security b/etc/security index 19d1bcb525a9..b5cdfd46e86f 100644 --- a/etc/security +++ b/etc/security @@ -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