=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/weekly,v retrieving revision 1.24 retrieving revision 1.25 diff -c -r1.24 -r1.25 *** src/etc/weekly 2011/01/19 06:18:05 1.24 --- src/etc/weekly 2011/07/07 23:09:46 1.25 *************** *** 1,5 **** # ! # $OpenBSD: weekly,v 1.24 2011/01/19 06:18:05 david Exp $ # # For local additions, create the file /etc/weekly.local. # To get section headers, use the function next_part in weekly.local. --- 1,5 ---- # ! # $OpenBSD: weekly,v 1.25 2011/07/07 23:09:46 guenther Exp $ # # For local additions, create the file /etc/weekly.local. # To get section headers, use the function next_part in weekly.local. *************** *** 45,52 **** next_part "Rebuilding locate database:" if [ -f /var/db/locate.database ]; then ! TMP=`mktemp /var/db/locate.database.XXXXXXXXXX` ! if [ $? -eq 0 ]; then trap 'rm -f $TMP; exit 1' 0 1 15 UPDATEDB="/usr/libexec/locate.updatedb" echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/var/tmp}" | \ --- 45,51 ---- next_part "Rebuilding locate database:" if [ -f /var/db/locate.database ]; then ! if TMP=`mktemp /var/db/locate.database.XXXXXXXXXX`; then trap 'rm -f $TMP; exit 1' 0 1 15 UPDATEDB="/usr/libexec/locate.updatedb" echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/var/tmp}" | \