]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Force copies to 1 for banner and raster files (Issue #1143)
authorMichael R Sweet <msweet@msweet.org>
Mon, 20 Jan 2025 17:23:55 +0000 (12:23 -0500)
committerMichael R Sweet <msweet@msweet.org>
Mon, 20 Jan 2025 17:23:55 +0000 (12:23 -0500)
scheduler/job.c

index eb093651d2517853149503e2f297b37825d78436..f6d5f925b673ea938c148589f294cdaef9b8af38 100644 (file)
@@ -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 <grp.h>
 #include <cups/backend.h>
@@ -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: