From: Michael R Sweet Date: Mon, 20 Jan 2025 17:23:55 +0000 (-0500) Subject: Force copies to 1 for banner and raster files (Issue #1143) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60668b1f91b580cde61b15fa60702ee0c8312ea3;p=thirdparty%2Fcups.git Force copies to 1 for banner and raster files (Issue #1143) --- diff --git a/scheduler/job.c b/scheduler/job.c index eb093651d2..f6d5f925b6 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -1,7 +1,7 @@ /* * Job management routines for the CUPS scheduler. * - * Copyright © 2020-2024 by OpenPrinting. + * Copyright © 2020-2025 by OpenPrinting. * Copyright © 2007-2019 by Apple Inc. * Copyright © 1997-2007 by Easy Software Products, all rights reserved. * @@ -9,10 +9,6 @@ * information. */ -/* - * Include necessary headers... - */ - #include "cupsd.h" #include #include @@ -868,6 +864,9 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */ goto abort_job; } + if (banner_page || (!strcmp(job->filetypes[job->current_file]->super, "image") && (!strcmp(job->filetypes[job->current_file]->type, "pwg-raster") || !strcmp(job->filetypes[job->current_file]->type, "urf")))) + cupsCopyString(copies, "1", sizeof(copies)); + /* * Build the command-line arguments for the filters. Each filter * has 6 or 7 arguments: