summaryrefslogtreecommitdiff
path: root/ppdc
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2018-08-27 10:31:29 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2018-08-27 10:31:29 -0400
commit604783214d19944978fb20b650afb121f2287347 (patch)
tree73ad69253babcd093ebe69a343bb019d1daf0688 /ppdc
parentd128cfc60175914a5c92b3b72f1471e6343a211d (diff)
downloadcups-604783214d19944978fb20b650afb121f2287347.tar.gz
Fix JCL option support in PPD compiler (Issue #5379)
Diffstat (limited to 'ppdc')
-rw-r--r--ppdc/ppdc-driver.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/ppdc/ppdc-driver.cxx b/ppdc/ppdc-driver.cxx
index 1a102901d..9547e91fa 100644
--- a/ppdc/ppdc-driver.cxx
+++ b/ppdc/ppdc-driver.cxx
@@ -1,7 +1,7 @@
//
// PPD file compiler definitions for the CUPS PPD Compiler.
//
-// Copyright 2007-2014 by Apple Inc.
+// Copyright 2007-2018 by Apple Inc.
// Copyright 2002-2006 by Easy Software Products.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more information.
@@ -1103,7 +1103,10 @@ ppdcDriver::write_ppd_file(
cupsFilePrintf(fp, "*End%s", lf);
}
- cupsFilePrintf(fp, "*CloseUI: *%s%s", o->name->value, lf);
+ if (o->section == PPDC_SECTION_JCL)
+ cupsFilePrintf(fp, "*JCLCloseUI: *%s%s", o->name->value, lf);
+ else
+ cupsFilePrintf(fp, "*CloseUI: *%s%s", o->name->value, lf);
snprintf(custom, sizeof(custom), "Custom%s", o->name->value);
if ((a = find_attr(custom, "True")) != NULL)