Skip to content

Commit

Permalink
Force copies to 1 for banner and raster files (Issue #1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jan 20, 2025
1 parent b18269f commit 1518ad5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
- Fixed a bug in the make-and-model whitespace trimming code (Issue #1096)
- Fixed a removal of IPP Everywhere permanent queue if installation failed (Issue #1102)
- Fixed `ServerToken None` in scheduler (Issue #1111)
- Fixed client raster printing from macOS (Issue #1143)
- Fixed the default User-Agent string.
- Fixed a recursion issue in `ippReadIO`.

Expand Down
9 changes: 4 additions & 5 deletions scheduler/job.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/*
* 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.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
*/

/*
* Include necessary headers...
*/

#include "cupsd.h"
#include <grp.h>
#include <cups/backend.h>
Expand Down Expand Up @@ -870,6 +866,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"))))
strlcpy(copies, "1", sizeof(copies));

/*
* Build the command-line arguments for the filters. Each filter
* has 6 or 7 arguments:
Expand Down

0 comments on commit 1518ad5

Please sign in to comment.