From owner-freebsd-bugs Sat May 4 13:28:21 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id D54A937B41B; Sat, 4 May 2002 13:28:17 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [IPv6:fec0::1:12]) by Awfulhak.org (8.12.2/8.12.2) with ESMTP id g44KSGfr067266; Sat, 4 May 2002 21:28:16 +0100 (BST) (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.3/8.12.3) with ESMTP id g44KSACn032145; Sat, 4 May 2002 21:28:10 +0100 (BST) (envelope-from brian@freebsd-services.com) Message-Id: <200205042028.g44KSACn032145@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Crist J. Clark" Cc: Brian Somers , johan@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, brian@FreeBSD.ORG Subject: Re: conf/37618: etc/security calls diff -w, but i dont think it means to In-Reply-To: Message from "Crist J. Clark" of "Sat, 04 May 2002 12:58:55 PDT." <20020504125854.C74245@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 04 May 2002 21:28:10 +0100 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org It's fine by me if you want to commit this. > It seems like this is the right way to make everyone happy. > > Index: 100.chksetuid > =================================================================== > RCS file: /export/freebsd/ncvs/src/etc/periodic/security/100.chksetuid,v > retrieving revision 1.1 > diff -u -r1.1 100.chksetuid > --- 100.chksetuid 7 Dec 2001 23:57:38 -0000 1.1 > +++ 100.chksetuid 4 May 2002 19:56:13 -0000 > @@ -52,7 +52,7 @@ > find $mount -xdev -type f \ > \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \ > \( -perm -u+s -or -perm -g+s \) -print0 > - done | xargs -0 -n 20 ls -liTd | sort +10 > ${TMP} > + done | xargs -0 -n 20 ls -liTd | sed 's/^ *//' | sort +10 > ${TMP} > > if [ ! -f ${LOG}/setuid.today ]; then > rc=1 > @@ -64,7 +64,7 @@ > then > [ $rc -lt 1 ] && rc=1 > echo "${host} setuid diffs:" > - diff -w ${LOG}/setuid.today ${TMP} > + diff -b ${LOG}/setuid.today ${TMP} > mv ${LOG}/setuid.today ${LOG}/setuid.yesterday || rc=3 > mv ${TMP} ${LOG}/setuid.today || rc=3 > fi > > -- > Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | cjc@freebsd.org -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message