[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1790-g9c196bb
[email protected] (Robin Watts) Thu, 31 Oct 2019 19:48:12 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 9c196bb7f6873b4fe43a649fc87cba363c6af8e5 (commit)
from a6e36c29b69b4d15aac872e37303dcf9cb8d7739 (commit)
----------------------------------------------------------------------
commit 9c196bb7f6873b4fe43a649fc87cba363c6af8e5
Author: Robin Watts <[email protected]>
Date: Thu Oct 31 19:47:13 2019 +0000
Fix devicen device for new file security world.
Again, update the code to allow spot files to be written.
diff --git a/base/gdevdevn.c b/base/gdevdevn.c
index b13e50b..00932ad 100644
--- a/base/gdevdevn.c
+++ b/base/gdevdevn.c
@@ -1382,7 +1382,11 @@ spotcmyk_print_page(gx_device_printer * pdev, gp_file * prn_stream)
/* Open the output files for the spot colors */
for(i = 0; i < nspot; i++) {
gs_sprintf(spotname, "%ss%d", pdevn->fname, i);
+ code = gs_add_control_path(pdev->memory, gs_permit_file_writing, spotname);
+ if (code < 0)
+ goto prn_done;
spot_file[i] = gp_fopen(pdev->memory, spotname, "wb");
+ (void)gs_remove_control_path(pdev->memory, gs_permit_file_writing, spotname);
if (spot_file[i] == NULL) {
code = gs_note_error(gs_error_VMerror);
goto prn_done;
Summary of changes:
base/gdevdevn.c | 4 ++++
1 file changed, 4 insertions(+)