summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2016-10-03 01:46:28 +0100
committerChris Liddell <chris.liddell@artifex.com>2016-10-05 16:47:41 +0100
commit8abd22010eb4db0fb1b10e430d5f5d83e015ef70 (patch)
tree515e7c91d6ab8ca0027704030e710c47e2b14e95
parentd609a3d4c1b8583d1c22db6b4d3bce4b239cf88c (diff)
downloadghostpdl-8abd22010eb4db0fb1b10e430d5f5d83e015ef70.tar.gz
Bug 697169: Be rigorous with SAFER permissions
Once we've opened our input file from the command line, enforce the SAFER rules.
-rw-r--r--psi/zfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/psi/zfile.c b/psi/zfile.c
index b6caea2cf..2c6c9588b 100644
--- a/psi/zfile.c
+++ b/psi/zfile.c
@@ -1081,6 +1081,9 @@ lib_file_open(gs_file_path_ptr lib_path, const gs_memory_t *mem, i_ctx_t *i_ctx
gs_main_instance *minst = get_minst_from_memory(mem);
int code;
+ if (i_ctx_p && starting_arg_file)
+ i_ctx_p->starting_arg_file = false;
+
/* when starting arg files (@ files) iodev_default is not yet set */
if (iodev == 0)
iodev = (gx_io_device *)gx_io_device_table[0];