• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From ee02b74ad03b52a5226f80dd2f551c1b565cdbb2 Mon Sep 17 00:00:00 2001
2From: Michael R Sweet <michael.r.sweet@gmail.com>
3Date: Wed, 12 Jan 2022 08:12:24 -0500
4Subject: [PATCH] Remove legacy code for RIP_MAX_CACHE environment variable
5 (Issue #323)
6
7Reference:https://github.com/OpenPrinting/cups/commit/ee02b74ad03b52a5226f80dd2f551c1b565cdbb2
8
9---
10 CHANGES.md      | 12 +++++++++---
11 scheduler/job.c |  7 ++-----
12 2 files changed, 11 insertions(+), 8 deletions(-)
13
14diff --git a/scheduler/job.c b/scheduler/job.c
15index fd69f71c9c..fbacc4cd12 100644
16--- a/scheduler/job.c
17+++ b/scheduler/job.c
18@@ -541,10 +541,8 @@ cupsdContinueJob(cupsd_job_t *job)	/* I - Job */
19 					/* PRINTER_LOCATION env variable */
20 			printer_name[255],
21 					/* PRINTER env variable */
22-			*printer_state_reasons = NULL,
23+			*printer_state_reasons = NULL;
24 					/* PRINTER_STATE_REASONS env var */
25-			rip_max_cache[255];
26-					/* RIP_MAX_CACHE env variable */
27
28
29   cupsdLogMessage(CUPSD_LOG_DEBUG2,
30@@ -749,7 +747,7 @@ cupsdContinueJob(cupsd_job_t *job)	/* I - Job */
31
32   raw_file = !strcmp(job->filetypes[job->current_file]->super, "application") &&
33     !strcmp(job->filetypes[job->current_file]->type, "vnd.cups-raw");
34-
35+
36   if ((job->compressions[job->current_file] && (!job->printer->remote || job->num_files == 1)) ||
37       (!job->printer->remote && (job->printer->raw || raw_file) && job->num_files > 1))
38   {
39@@ -1051,7 +1049,6 @@ cupsdContinueJob(cupsd_job_t *job)	/* I - Job */
40   envp[envc ++] = apple_language;
41 #endif /* __APPLE__ */
42   envp[envc ++] = ppd;
43-  envp[envc ++] = rip_max_cache;
44   envp[envc ++] = content_type;
45   envp[envc ++] = device_uri;
46   envp[envc ++] = printer_info;
47