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

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