summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-10-07 02:14:06 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-10-20 18:24:44 +0200
commit240b63d55bf865e45a3dc2180db37a7cff83c95d (patch)
tree05ca9e8aaa262a6568c53484b27949620c9d5153
parentImport Ghostscript 9.55 (diff)
downloadghostscript-gpl-patches-240b63d55bf865e45a3dc2180db37a7cff83c95d.tar.gz
ghostscript-gpl-patches-240b63d55bf865e45a3dc2180db37a7cff83c95d.tar.bz2
ghostscript-gpl-patches-240b63d55bf865e45a3dc2180db37a7cff83c95d.zip
Make sure 'dvipdf' is being run securely
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xlib/dvipdf2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dvipdf b/lib/dvipdf
index 13e19854..078292b4 100755
--- a/lib/dvipdf
+++ b/lib/dvipdf
@@ -43,4 +43,4 @@ fi
# We have to include the options twice because -I only takes effect if it
# appears before other options.
-exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -
+exec dvips -R -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -