ghostscript-9.20-run-dvipdf-securely.patch 920 B

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