1 |
From cf046d2f0fa2c6973c6ca8d582a9b185cc4bd280 Mon Sep 17 00:00:00 2001 |
2 |
From: Chris Liddell <chris.liddell@artifex.com> |
3 |
Date: Mon, 3 Oct 2016 01:46:28 +0100 |
4 |
Subject: [PATCH] Bug 697169: Be rigorous with SAFER permissions |
5 |
|
6 |
Once we've opened our input file from the command line, enforce the SAFER |
7 |
rules. |
8 |
--- |
9 |
psi/zfile.c | 3 +++ |
10 |
1 file changed, 3 insertions(+) |
11 |
|
12 |
diff --git a/psi/zfile.c b/psi/zfile.c |
13 |
index b6caea2..2c6c958 100644 |
14 |
--- a/psi/zfile.c |
15 |
+++ b/psi/zfile.c |
16 |
@@ -1081,6 +1081,9 @@ lib_file_open(gs_file_path_ptr lib_path, const gs_memory_t *mem, i_ctx_t *i_ctx |
17 |
gs_main_instance *minst = get_minst_from_memory(mem); |
18 |
int code; |
19 |
|
20 |
+ if (i_ctx_p && starting_arg_file) |
21 |
+ i_ctx_p->starting_arg_file = false; |
22 |
+ |
23 |
/* when starting arg files (@ files) iodev_default is not yet set */ |
24 |
if (iodev == 0) |
25 |
iodev = (gx_io_device *)gx_io_device_table[0]; |
26 |
-- |
27 |
2.9.1 |
28 |
|