From: Michael R Sweet Date: Tue, 21 Jan 2025 14:59:45 +0000 (-0500) Subject: Don't send copies for raster jobs (Issue #1141) X-Git-Tag: v2.4.12~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f536a49e033e9efe99847b4d5f70a8bf618a37;p=thirdparty%2Fcups.git Don't send copies for raster jobs (Issue #1141) --- diff --git a/backend/ipp.c b/backend/ipp.c index 8609e3a283..c1fe334e1f 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -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 #include @@ -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); }