Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release-src > by-pkgid > 3c83bbb1176e313dd084f0338245b0ec > files > 48

tetex-3.0-48mdv2009.1.src.rpm

--- 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