--- texk/xdvik/xdvizilla +++ texk/xdvik/xdvizilla 2005-02-07 14:18:11.000000000 +0100 @@ -61,8 +61,8 @@ trap 'do_cleanup' 1 2 3 7 13 15 ### create a temporary directory only read/writable by user -TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$ -(umask 077; mkdir "$TMP_DIR") || do_abort "Could not create directory \`$TMP_DIR'" +TMP_DIR=${TMPDIR-${TEMP-${TMP-/tmp}}}/${progname}.XXXXXX +TMP_DIR=$(mktemp -d "$TMP_DIR") || do_abort "Could not create directory \`$TMP_DIR'" if [ $# -gt 1 -a "x$1" = "x-no-rm" ]; then NO_RM=y