make commented-out stuff secure just in case anyone uncomments it.
authormillert <millert@openbsd.org>
Wed, 18 Dec 1996 04:32:57 +0000 (04:32 +0000)
committermillert <millert@openbsd.org>
Wed, 18 Dec 1996 04:32:57 +0000 (04:32 +0000)
etc/weekly

index 6bb1b29..0d9f5b7 100644 (file)
@@ -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