Skip to content

Commit

Permalink
Expand whitelist for use of "offline-report"
Browse files Browse the repository at this point in the history
Cherry picked from OpenPrinting/cups@17ee0b4
  • Loading branch information
AtariDreams committed Sep 30, 2021
1 parent 41203cb commit 6cf6e27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scheduler/job.c
Expand Up @@ -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");

/*
Expand Down

0 comments on commit 6cf6e27

Please sign in to comment.