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