blob: 19cf3db553e1c895484f6e2e9f88f00af1a4dcf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ad,v 1.3.12.1 2005/06/09 20:05:49 snj Exp $
Fix for CAN-2004-1377
--- contrib/fixps.in.orig 2000-02-21 09:16:15.000000000 +0100
+++ contrib/fixps.in 2005-06-09 16:45:42.000000000 +0200
@@ -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,8 @@
exit 1;;
esac
+tmpdir=`mktemp -d -t fixps.XXXXXX` || { echo "$program: Cannot create temporary directory!" >&2 ; exit 1; }
+
if test -n "$debug"; then
# Set -x now if debugging
set -x
@@ -191,7 +192,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
|