summaryrefslogtreecommitdiff
path: root/print/ghostscript-nox11/patches
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2005-11-27 17:04:18 +0000
committeradrianp <adrianp@pkgsrc.org>2005-11-27 17:04:18 +0000
commit2decd632465d98cb1c435c01f914c025ce160be0 (patch)
treeacc5deec57d82edc8a75b73c3740aae9736d27fa /print/ghostscript-nox11/patches
parentd3144949b61f75242adeea259ba9fc4f789121cd (diff)
downloadpkgsrc-2decd632465d98cb1c435c01f914c025ce160be0.tar.gz
Update for http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0967
Diffstat (limited to 'print/ghostscript-nox11/patches')
-rw-r--r--print/ghostscript-nox11/patches/patch-ba42
-rw-r--r--print/ghostscript-nox11/patches/patch-bb10
-rw-r--r--print/ghostscript-nox11/patches/patch-bc18
-rw-r--r--print/ghostscript-nox11/patches/patch-bd31
4 files changed, 101 insertions, 0 deletions
diff --git a/print/ghostscript-nox11/patches/patch-ba b/print/ghostscript-nox11/patches/patch-ba
new file mode 100644
index 00000000000..4ab4ce3b1c3
--- /dev/null
+++ b/print/ghostscript-nox11/patches/patch-ba
@@ -0,0 +1,42 @@
+$NetBSD: patch-ba,v 1.1 2005/11/27 17:08:31 adrianp Exp $
+
+--- lib/pj-gs.sh.orig 2000-03-09 08:40:40.000000000 +0000
++++ lib/pj-gs.sh
+@@ -241,6 +241,7 @@ do
+ then
+ /usr/lib/lprcat $Nofilter $Nolabel $file PCL1 $user $dev
+ else
++ TEMPFILE=`mktemp -t pjXXXXXX` || exit 1
+ type=`file $file | sed 's/^[^:]*..//'`
+ case "$type" in
+ postscript*)
+@@ -251,22 +252,22 @@ do
+ #
+ # gs -q -sDEVICE=paintjet -r180 -sOutputFile=- -dDISKFONTS -dNOPAUSE - < $file 2>/tmp/sh$$
+
+- gs -q -sDEVICE=paintjet -r180 -sOutputFile=/tmp/pj$$ -dDISKFONTS -dNOPAUSE - < $file 1>2
+- cat /tmp/pj$$
+- rm /tmp/pj$$
++ gs -q -sDEVICE=paintjet -r180 -sOutputFile=$TEMPFILE -dDISKFONTS -dNOPAUSE - < $file 1>2
++ cat $TEMPFILE
++ rm $TEMPFILE
+ needff=
+ ;;
+- *) cat "$file" 2>/tmp/sh$$
++ *) cat "$file" 2>$TEMPFILE
+ needff=1
+ ;;
+ esac
+
+- if [ -s /tmp/sh$$ ]
++ if [ -s $TEMPFILE ]
+ then
+ # cat /tmp/sh$$ # output any errors
+- cat /tmp/sh$$ 1>2 # output any errors
++ cat $TEMPFILE 1>2 # output any errors
+ fi
+- rm -f /tmp/sh$$
++ rm -f $TEMPFILE
+ if [ $needff ]; then echo "\014\r\c"; fi
+ fi
+
diff --git a/print/ghostscript-nox11/patches/patch-bb b/print/ghostscript-nox11/patches/patch-bb
new file mode 100644
index 00000000000..2e974cc3b23
--- /dev/null
+++ b/print/ghostscript-nox11/patches/patch-bb
@@ -0,0 +1,10 @@
+$NetBSD: patch-bb,v 1.1 2005/11/27 17:08:31 adrianp Exp $
+
+--- lib/ps2epsi.orig 2000-03-09 08:40:40.000000000 +0000
++++ lib/ps2epsi
+@@ -3,3 +3,4 @@
+
+-tmpfile=/tmp/ps2epsi$$
++tmpfile=`mktemp -t ps2epsi.XXXXXX || exit 1`
++trap "rm -rf $tmpfile" 0 1 2 3 7 13 15
+
diff --git a/print/ghostscript-nox11/patches/patch-bc b/print/ghostscript-nox11/patches/patch-bc
new file mode 100644
index 00000000000..b1704066f4b
--- /dev/null
+++ b/print/ghostscript-nox11/patches/patch-bc
@@ -0,0 +1,18 @@
+$NetBSD: patch-bc,v 1.1 2005/11/27 17:08:31 adrianp Exp $
+
+--- lib/pv.sh.orig 2000-03-09 08:40:40.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
diff --git a/print/ghostscript-nox11/patches/patch-bd b/print/ghostscript-nox11/patches/patch-bd
new file mode 100644
index 00000000000..095c843cd62
--- /dev/null
+++ b/print/ghostscript-nox11/patches/patch-bd
@@ -0,0 +1,31 @@
+$NetBSD: patch-bd,v 1.1 2005/11/27 17:08:31 adrianp Exp $
+
+--- lib/sysvlp.sh.orig 2000-03-09 08:40:40.000000000 +0000
++++ lib/sysvlp.sh
+@@ -27,20 +27,23 @@ files="$*"
+ # Brother HL-4: switch to HP laserjet II+ emulation
+ # echo "\033\015H\c"
+
++TEMPDIR=`mktemp -td sysvlp.XXXXXX` || exit 1
++
+ i=1
+ while [ $i -le $copies ]
+ do
+ for file in $files
+ do
+ $GSHOME/gs \
+- -sOUTPUTFILE=/tmp/psp$$.%02d \
++ -sOUTPUTFILE=$TEMPDIR/psp$$.%02d \
+ -sDEVICE=$DEVICE \
+ $EHANDLER $file \
+ < /dev/null >> /usr/tmp/ps_log 2>&1
+
+- cat /tmp/psp$$.* 2>> /usr/tmp/ps_log
+- rm -f /tmp/psp$$.*
++ cat $TEMPDIR/psp$$.* 2>> /usr/tmp/ps_log
++ rm -f $TEMPDIR/psp$$.*
+ done
+ i=`expr $i + 1`
+ done
++rmdir $TEMPDIR
+ exit 0