=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/daily,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/etc/daily 1996/12/06 16:49:12 1.12 --- src/etc/daily 1996/12/07 07:33:06 1.13 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: daily,v 1.12 1996/12/06 16:49:12 deraadt Exp $ # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local host=`hostname -s` --- 1,6 ---- #!/bin/sh - # ! # $OpenBSD: daily,v 1.13 1996/12/07 07:33:06 bitblt Exp $ # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local host=`hostname -s` *************** *** 44,51 **** # XXX NOT REMOVING UNTIL SECURITY BUG IS FIXED # find . ! -name . -mtime +7 -exec rm -f -- {} \; ; } #fi ! cd /tmp TMP=daily.$$ rm -f $TMP echo -n > $TMP --- 44,59 ---- # XXX NOT REMOVING UNTIL SECURITY BUG IS FIXED # find . ! -name . -mtime +7 -exec rm -f -- {} \; ; } #fi + TDIR=/tmp/daily.$$ + if ! mkdir $TDIR ; then + printf "tmp directory %s already exists, looks like:\n" $TDIR + ls -alf $TDIR + exit 1 + fi + cd $TDIR + trap 'rm -rf $TDIR' 0 1 15 ! TMP=daily.$$ rm -f $TMP echo -n > $TMP