[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1850-g24ec06a

[email protected] (Chris Liddell) Tue, 12 Nov 2019 10:56:50 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, master has been updated
       via  24ec06a27df63297796a379c95ee5d4b39040410 (commit)
      from  592fb032180aac0fc22a7c860ef116b38da8ca71 (commit)

----------------------------------------------------------------------
commit 24ec06a27df63297796a379c95ee5d4b39040410
Author: Chris Liddell <[email protected]>
Date:   Tue Nov 12 10:29:16 2019 +0000

    Bug 701894: fix the '--' and co options
    
    The --, -+ and -@ need to add the file argument to the permit read list
    before attempting to open and interpret them.

diff --git a/psi/imainarg.c b/psi/imainarg.c
index 76653f3..c5d74ca 100644
--- a/psi/imainarg.c
+++ b/psi/imainarg.c
@@ -509,7 +509,9 @@ run_stdin:
                             break;
                     }
                 if (code >= 0)
-                    code = runarg(minst, "]put", psarg, ".runfile", runInit | runFlush, minst->user_errors, NULL, NULL);
+                    code = run_string(minst, "]put", 0, minst->user_errors, NULL, NULL);
+                if (code >= 0)
+                    code = argproc(minst, psarg);
                 arg_free((char *)psarg, minst->heap);
                 if (code >= 0)
                     code = gs_error_Quit;


Summary of changes:
 psi/imainarg.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)