--- tetex-src-3.0/texk/xdvik/xdvizilla.typo 2007-01-22 22:37:26.000000000 +0100 +++ tetex-src-3.0/texk/xdvik/xdvizilla 2007-01-23 15:14:03.000000000 +0100 @@ -61,8 +61,7 @@ trap 'do_cleanup' 1 2 3 7 13 15 ### create a temporary directory only read/writable by user -TMP_DIR=`mktmp -d ${TMP-/tmp}/$progname.XXXXXX` -(umask 077; mkdir "$TMP_DIR") || do_abort "Could not create directory \`$TMP_DIR'" +TMP_DIR=`umask 077 && mktemp -d "${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.XXXXXX"` || do_abort "$progname: failed to create temp directory." if [ $# -gt 1 -a "x$1" = "x-no-rm" ]; then NO_RM=y