Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 May 2002 21:28:10 +0100
From:      Brian Somers <brian@freebsd-services.com>
To:        "Crist J. Clark" <cjc@FreeBSD.ORG>
Cc:        Brian Somers <brian@freebsd-services.com>, 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 
Message-ID:  <200205042028.g44KSACn032145@hak.lan.Awfulhak.org>
In-Reply-To: Message from "Crist J. Clark" <cjc@FreeBSD.ORG>  of "Sat, 04 May 2002 12:58:55 PDT." <20020504125854.C74245@blossom.cjclark.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@freebsd-services.com>                <brian@Awfulhak.org>
      http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205042028.g44KSACn032145>