mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 07:19:16 -04:00
19 lines
483 B
Text
19 lines
483 B
Text
--- lib/ps2epsi.orig Sat Jan 28 06:58:27 2006
|
|
+++ lib/ps2epsi Sat May 27 12:37:07 2006
|
|
@@ -5,14 +5,8 @@
|
|
# executable name set in the makefile
|
|
GS_EXECUTABLE=gs
|
|
|
|
-# try to create a temporary file securely
|
|
-tmpdir=/tmp/ps2epsi.$$
|
|
-(umask 077 && mkdir $tmpdir)
|
|
-if ! test -d $tmpdir; then
|
|
- echo "failed: could not create temporary file"
|
|
- exit 1
|
|
-fi
|
|
-tmpfile=$tmpdir/ps2epsi$$
|
|
+tmpfile=`mktemp -t ps2epsi.XXXXXX || exit 1`
|
|
+trap "rm -rf $tmpfile" 0 1 2 3 7 13 15
|
|
|
|
export outfile
|
|
|