diff options
author | adrianp <adrianp@pkgsrc.org> | 2005-11-27 17:04:18 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2005-11-27 17:04:18 +0000 |
commit | 2decd632465d98cb1c435c01f914c025ce160be0 (patch) | |
tree | acc5deec57d82edc8a75b73c3740aae9736d27fa /print/ghostscript-gnu/patches/patch-ad | |
parent | d3144949b61f75242adeea259ba9fc4f789121cd (diff) | |
download | pkgsrc-2decd632465d98cb1c435c01f914c025ce160be0.tar.gz |
Update for http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0967
Diffstat (limited to 'print/ghostscript-gnu/patches/patch-ad')
-rw-r--r-- | print/ghostscript-gnu/patches/patch-ad | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/print/ghostscript-gnu/patches/patch-ad b/print/ghostscript-gnu/patches/patch-ad new file mode 100644 index 00000000000..7e661668ef1 --- /dev/null +++ b/print/ghostscript-gnu/patches/patch-ad @@ -0,0 +1,18 @@ +$NetBSD: patch-ad,v 1.1 2005/11/27 17:06:36 adrianp Exp $ + +--- lib/pv.sh.orig 2005-11-27 14:39:25.000000000 +0000 ++++ lib/pv.sh +@@ -29,9 +29,10 @@ TEMPDIR=. + PAGE=$1 + shift + FILE=$1 ++TEMPFILE=`mktemp -t ${FILE}XXXXXX` || exit 1 + shift +-trap "rm -rf $TEMPDIR/$FILE.$$.pv" 0 1 2 15 ++trap "rm -rf $TEMPFILE" 0 1 2 15 + #dvips -D$RESOLUTION -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv +-dvips -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv +-gs $FILE.$$.pv ++dvips -p $PAGE -n 1 $FILE $* -o $TEMPFILE ++gs $TEMPFILE + exit 0 |