diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-10-01 11:07:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 11:07:17 -0400 |
commit | c702e855d84e572ae3fd46566f644b08fe19d722 (patch) | |
tree | 505f53ac9f7c8b102b9eb72365b02b475ea37303 | |
parent | 26dcdbf4878adf0bb713af51dfefaaacfd64ea5f (diff) | |
parent | 6cf6e275ed939ba21c727af7ca315711f781ec13 (diff) | |
download | cups-c702e855d84e572ae3fd46566f644b08fe19d722.tar.gz |
Merge pull request #5974 from AtariDreams/patch-5
Expand whitelist for use of "offline-report"
-rw-r--r-- | scheduler/job.c | 3 |
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"); /* |