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