Blame SOURCES/ghostscript-9.23-100-run-dvipdf-securely.patch

38aaa9
From 91c9c6d17d445781ee572c281b8b9d75d96f9df8 Mon Sep 17 00:00:00 2001
38aaa9
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
38aaa9
Date: Fri, 7 Oct 2016 13:57:01 +0200
38aaa9
Subject: [PATCH] Make sure 'dvipdf' is being run securely
38aaa9
38aaa9
---
38aaa9
 lib/dvipdf | 2 +-
38aaa9
 1 file changed, 1 insertion(+), 1 deletion(-)
38aaa9
38aaa9
diff --git a/lib/dvipdf b/lib/dvipdf
38aaa9
index 802aeab..c92dfb0 100755
38aaa9
--- a/lib/dvipdf
38aaa9
+++ b/lib/dvipdf
38aaa9
@@ -43,4 +43,4 @@ fi
38aaa9
 
38aaa9
 # We have to include the options twice because -I only takes effect if it
38aaa9
 # appears before other options.
38aaa9
-exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
38aaa9
+exec dvips -R -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
38aaa9
-- 
38aaa9
2.14.3
38aaa9