]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't send copies for raster jobs (Issue #1141)
authorMichael R Sweet <msweet@msweet.org>
Tue, 21 Jan 2025 14:59:45 +0000 (09:59 -0500)
committerMichael R Sweet <msweet@msweet.org>
Tue, 21 Jan 2025 14:59:45 +0000 (09:59 -0500)
backend/ipp.c

index 8609e3a283459aece380a19d0fb55b597c62c767..c1fe334e1f3ee499055f8cdd593464aa9d5c8de7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * IPP backend for CUPS.
  *
- * Copyright © 2021-2024 by OpenPrinting
+ * Copyright © 2021-2025 by OpenPrinting
  * Copyright © 2007-2021 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
@@ -9,10 +9,6 @@
  * information.
  */
 
-/*
- * Include necessary headers.
- */
-
 #include "backend-private.h"
 #include <cups/ppd-private.h>
 #include <cups/array-private.h>
@@ -2986,6 +2982,10 @@ new_request(
 
       fputs("DEBUG: Adding all operation/job attributes.\n", stderr);
       adjust_options(num_options, options);
+
+      if (!strcmp(format, "image/pwg-raster") || !strcmp(format, "image/urf"))
+        num_options = cupsRemoveOption("copies", num_options, &options);
+
       cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION);
       cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB);
     }