#!/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
# 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