be8f422
--- a2ps-4.13/contrib/psmandup.in.tmpdir	1999-10-24 14:06:42.000000000 +0100
be8f422
+++ a2ps-4.13/contrib/psmandup.in	2006-08-08 14:52:22.000000000 +0100
d849939
@@ -36,7 +36,7 @@
d849939
 message=
d849939
 psselect=${PSSELECT:-psselect}
d849939
 psset=${PSSET:-psset}
d849939
-tmpdir=/tmp/$program.$$
d849939
+tmpdir=$(mktemp -d /tmp/$program.XXXXXX)
d849939
 
d849939
 # These two must be kept in synch.  They are opposed.
d849939
 verbose=echo
be8f422
--- a2ps-4.13/contrib/fixps.in.tmpdir	2000-02-21 08:16:15.000000000 +0000
be8f422
+++ a2ps-4.13/contrib/fixps.in	2006-08-08 14:53:36.000000000 +0100
be8f422
@@ -38,7 +38,6 @@
d849939
 run_gs=0
d849939
 # What action to perform: fixps, cat, check, and gs
d849939
 task=fixps
d849939
-tmpdir=/tmp/$program.$$
d849939
 verbose=echo
d849939
 
d849939
 # The version/usage strings
be8f422
@@ -183,6 +182,7 @@
be8f422
       exit 1;;
be8f422
 esac
be8f422
 
be8f422
+tmpdir=$(mktemp -d /tmp/$program.XXXXXX)
be8f422
 if test -n "$debug"; then
be8f422
   # Set -x now if debugging
be8f422
   set -x
be8f422
@@ -191,7 +191,6 @@
be8f422
   trap "/bin/rm -rf $tmpdir" 0 1 2 3 13 15
be8f422
 fi
be8f422
 
be8f422
-mkdir $tmpdir
be8f422
 fixps_sed=$tmpdir/fixps.sed
be8f422
 
be8f422
 # If printing from stdin, save into a tmp file
be8f422
--- a2ps-4.13/contrib/pdiff.in.tmpdir	1999-10-24 16:07:51.000000000 +0100
be8f422
+++ a2ps-4.13/contrib/pdiff.in	2006-08-08 14:52:22.000000000 +0100
d849939
@@ -34,7 +34,7 @@
d849939
 diff_options='-u'
d849939
 file=
d849939
 output=
d849939
-tmpdir=/tmp/$program.$$
d849939
+tmpdir=$(mktemp -d /tmp/$program.XXXXXX)
d849939
 verbose=echo
d849939
 wdiff_prog=${WDIFF:-wdiff}
d849939
 wdiff_options='-w[wd- -x-wd] -y{wd+ -z+wd}'