From: millert Date: Wed, 18 Dec 1996 04:32:57 +0000 (+0000) Subject: make commented-out stuff secure just in case anyone uncomments it. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1b4405d6295c8d3c4f7bd5baca1a1493636e47d6;p=openbsd make commented-out stuff secure just in case anyone uncomments it. --- diff --git a/etc/weekly b/etc/weekly index 6bb1b290b0b..0d9f5b78f46 100644 --- a/etc/weekly +++ b/etc/weekly @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: weekly,v 1.3 1996/05/26 10:25:32 deraadt Exp $ +# $OpenBSD: weekly,v 1.4 1996/12/18 04:32:57 millert Exp $ # PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec @@ -28,18 +28,22 @@ fi # echo "looking for checked out files:" # TDIR=/tmp/_checkout$$ # -# mkdir $TDIR -# for file in `find -f /usr/src ! -fstype local -prune -or \ -# -name 'p.*' -print | egrep 'SCCS/p\.'`; do -# owner=`awk '{ print $3 }' $file` -# echo "$owner $file" -# echo $file >> $TDIR/$owner -# done | sed -e 's,SCCS/p.,,' -# for file in $TDIR/*; do -# sed -e 's,SCCS/p.,,' $file | \ -# Mail -s 'checked out files' `basename $file` -# done -# rm -rf $TDIR +# if ! mkdir $TDIR ; then +# echo "temp dir $TDIR already exists! Probable spoof attempt." +# ls -alF $TDIR +# else +# for file in `find -f /usr/src ! -fstype local -prune -or \ +# -name 'p.*' -print | egrep 'SCCS/p\.'`; do +# owner=`awk '{ print $3 }' $file` +# echo "$owner $file" +# echo $file >> $TDIR/$owner +# done | sed -e 's,SCCS/p.,,' +# for file in $TDIR/*; do +# sed -e 's,SCCS/p.,,' $file | \ +# Mail -s 'checked out files' `basename $file` +# done +# rm -rf $TDIR +# fi #fi if [ -f /usr/lib/uucp/clean.weekly ]; then