summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRose <83477269+AtariDreams@users.noreply.github.com>2021-09-30 13:03:58 -0400
committerGitHub <noreply@github.com>2021-09-30 13:03:58 -0400
commit6cf6e275ed939ba21c727af7ca315711f781ec13 (patch)
tree44e3cc8b9a552878a7adfc93cdf27ddad4569ae9
parent41203cbdb391d93264880ddc83b537730b5f9abf (diff)
downloadcups-6cf6e275ed939ba21c727af7ca315711f781ec13.tar.gz
Expand whitelist for use of "offline-report"
Cherry picked from https://github.com/OpenPrinting/cups/commit/17ee0b4f9c5f312ae7099e7627aba2b5e6ed0c8d
-rw-r--r--scheduler/job.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scheduler/job.c b/scheduler/job.c
index cafdf5a46..351d43b11 100644
--- a/scheduler/job.c
+++ b/scheduler/job.c
@@ -3112,8 +3112,7 @@ finalize_job(cupsd_job_t *job, /* I - Job */
* rarely have current information for network devices...
*/
- if (strncmp(job->printer->device_uri, "usb:", 4) &&
- strncmp(job->printer->device_uri, "ippusb:", 7))
+ if (!strstr(job->printer->device_uri, "usb:"))
cupsdSetPrinterReasons(job->printer, "-offline-report");
/*