]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Run gs pagecount in sandbox enabled mode. 212/head
authorAndrey Jr. Melnikov <temnota.am@gmail.com>
Wed, 26 Feb 2020 15:16:35 +0000 (18:16 +0300)
committerAndrey Jr. Melnikov <temnota.am@gmail.com>
Wed, 26 Feb 2020 15:16:35 +0000 (18:16 +0300)
Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
filter/foomatic-rip/pdf.c

index cb103932b1479e2e20da18a317ce4b6442cce4e5..3957f2c995c069b4138562e294ba870014889981 100644 (file)
@@ -47,7 +47,7 @@ int pdf_count_pages(const char *filename)
     size_t bytes;
     char *p;
 
-    snprintf(gscommand, CMDLINE_MAX, "%s -dNODISPLAY -q -c "
+    snprintf(gscommand, CMDLINE_MAX, "%s -dNODISPLAY -dSAFER -dNOPAUSE -q -c "
             "'/pdffile (%s) (r) file runpdfbegin (PageCount: ) print "
             "pdfpagecount = quit'",
             gspath, filename);