$OpenBSD: patch-etc_psf_etc2ps_sh,v 1.1 2004/10/24 20:26:55 brad Exp $
--- etc/psf/etc2ps.sh.orig	Sun Oct 24 16:20:53 2004
+++ etc/psf/etc2ps.sh	Sun Oct 24 16:23:22 2004
@@ -26,9 +26,10 @@ case $1 in
 #
 df*)
     if [ -x "$DVIPS" ]; then
-	cat > /tmp/psfilter.$$
-	$DVIPS $DVIPSARGS < /tmp/psfilter.$$
-	rm -f /tmp/psfilter.$$
+	TEMPFILE=`mktemp -t psfilter.XXXXXXXXXX` || exit 1
+	cat > $TEMPFILE
+	$DVIPS $DVIPSARGS < $TEMPFILE
+	rm -f $TEMPFILE
     else
 	echo "$0: filter dvips uninstalled" 1>&2
 	exit 2
