[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1726-ge7488d8

[email protected] (Chris Liddell) Tue, 15 Oct 2019 07:59:58 +0000 (UTC)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, master has been updated
       via  e7488d8a4d2bb48d6285d4ba3db1539206f0e67f (commit)
       via  75275c5c001699b32dfdc1d7d7977c8c4c9f2c80 (commit)
       via  74e468866b53e1a11d641549841b06027266ce39 (commit)
      from  72ab3591097a2e5ae5201f4a28d3560b019a1019 (commit)

----------------------------------------------------------------------
commit e7488d8a4d2bb48d6285d4ba3db1539206f0e67f
Author: Chris Liddell <[email protected]>
Date:   Mon Oct 14 18:29:10 2019 +0100

    Have warning honor -dQUIET
    
    Have the warning about calling .lockfileaccess or .setsafe when the controls are
    already in place honor the -dQUIET/-q command line params.

diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
index 450635f..e2c26aa 100644
--- a/Resource/Init/gs_init.ps
+++ b/Resource/Init/gs_init.ps
@@ -2235,8 +2235,11 @@ readonly def
 /.lockfileaccess {
   .currentpathcontrolstate
   {
-    (\n **** WARNING: .lockfileaccess or .setsafe called ****\n) print
-    ( **** when file access controls are already active ****\n) print flush
+    //QUIET not
+    {
+      (\n **** WARNING: .lockfileaccess or .setsafe called ****\n) print
+      ( **** when file access controls are already active ****\n) print flush
+    } if
   }
   {
     [

----------------------------------------------------------------------
commit 75275c5c001699b32dfdc1d7d7977c8c4c9f2c80
Author: Chris Liddell <[email protected]>
Date:   Mon Oct 14 18:07:29 2019 +0100

    Add words about .currentpathcontrolstate operator

diff --git a/doc/Language.htm b/doc/Language.htm
index 1b0819c..d6702f6 100644
--- a/doc/Language.htm
+++ b/doc/Language.htm
@@ -913,6 +913,15 @@ in place until the interpreter shuts down.
 </dl>
 
 <dl>
+<dt><a name=".currentpathcontrolstate"></a>
+<code>.currentpathcontrolstate</code></dt>
+<dd>
+Returns <code>true</code> on the operand stack if file access control has been
+activated, <code>false</code> if not.
+</dd>
+</dl>
+
+<dl>
 <dt><a name=".setpdfwrite"></a>
 <code>.setpdfwrite</code></dt>
 <dd>

----------------------------------------------------------------------
commit 74e468866b53e1a11d641549841b06027266ce39
Author: Chris Liddell <[email protected]>
Date:   Mon Oct 14 10:20:19 2019 +0100

    Update docs on SAFER
    
    to reflect that SAFER is now the default, and remove the comments about making
    SAFER the default "in the future".

diff --git a/doc/Use.htm b/doc/Use.htm
index d85a0da..8460724 100644
--- a/doc/Use.htm
+++ b/doc/Use.htm
@@ -3448,6 +3448,8 @@ system permissions.</dd>
 <dl>
     <dt><code>-dSAFER</code></dt>
 <dd>
+<strong>IMPORTANT NOTE:</strong> Ghostscript now (as of 9.28) defaults to SAFER being active.
+<p>
 Enables access controls on files. Access controls fall into three categories,
 files from which Ghostscript is permitted to read, ones to which it is permitted
 to write, and ones over which it has &quot;control&quot; (i.e. delete/rename). These
@@ -3578,7 +3580,7 @@ at all. Only <code>%stdout</code> and <code>%stderr</code> can be opened
 for writing.  Disables reading of files other than <code>%stdin</code>,
 those given as a command line argument, or those contained on one of the paths
 given by LIBPATH and FONTPATH and specified by the system params /FontResourceDir
-    and /GenericResourceDir.
+and /GenericResourceDir.
 <p>
 This mode also sets the <a href="Language.htm#LockSafetyParams">.LockSafetyParams</a>
 parameter of the default device, or the device specified with the <code>-sDEVICE= </code>
@@ -3590,11 +3592,6 @@ the <code>-sOutputFile=...</code> on the command line is unrestricted.</p>
 SAFER mode also prevents changing the /GenericResourceDir, /FontResourceDir
 and either the /SystemParamsPassword or the /StartJobPassword.</p>
 <p>
-<b>Note: </b>While SAFER mode is not the default, in a subsequent release of
-Ghostscript, SAFER mode will be the default thus scripts or programs that need
-to open files or set restricted parameters will require the <code>-dNOSAFER</code>
-command line option.</p>
-<p>
 When running -dNOSAFER it is possible to perform a <code>save</code>,
 followed by <code>.setsafe</code>, execute a file or procedure in SAFER mode,
 then use <code>restore</code> to return to NOSAFER mode. It is possible that the


Summary of changes:
 Resource/Init/gs_init.ps | 7 +++++--
 doc/Language.htm         | 9 +++++++++
 doc/Use.htm              | 9 +++------
 3 files changed, 17 insertions(+), 8 deletions(-)