--- contrib/named-bootconf/named-bootconf.sh +++ contrib/named-bootconf/named-bootconf.sh 2005/11/21 10:57:33 @@ -54,9 +54,10 @@ # POSSIBILITY OF SUCH DAMAGE. if [ ${OPTIONFILE-X} = X ]; then - OPTIONFILE=/tmp/.options.`date +%s`.$$ - ZONEFILE=/tmp/.zones.`date +%s`.$$ - COMMENTFILE=/tmp/.comments.`date +%s`.$$ + TMPDIR=`mktemp -p /tmp/ -d named-bootconf.XXXXXXXXXX` || exit 1 + OPTIONFILE=$TMPDIR/.options.`date +%s`.$$ + ZONEFILE=$TMPDIR/.zones.`date +%s`.$$ + COMMENTFILE=$TMPDIR/.comments.`date +%s`.$$ export OPTIONFILE ZONEFILE COMMENTFILE touch $OPTIONFILE $ZONEFILE $COMMENTFILE DUMP=1 @@ -302,7 +303,7 @@ echo "};" cat $ZONEFILE $COMMENTFILE - rm -f $OPTIONFILE $ZONEFILE $COMMENTFILE + rm -rf $TMPDIR fi exit 0