From 6cf6e275ed939ba21c727af7ca315711f781ec13 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Thu, 30 Sep 2021 13:03:58 -0400 Subject: Expand whitelist for use of "offline-report" Cherry picked from https://github.com/OpenPrinting/cups/commit/17ee0b4f9c5f312ae7099e7627aba2b5e6ed0c8d --- scheduler/job.c | 3 +-- 1 file changed, 1 insertion(+), 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"); /* -- cgit v1.2.1