summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/ipp.c5
-rw-r--r--backend/org.cups.usb-quirks3
-rw-r--r--backend/usb-libusb.c5
3 files changed, 8 insertions, 5 deletions
diff --git a/backend/ipp.c b/backend/ipp.c
index bc678f50a..e072249bd 100644
--- a/backend/ipp.c
+++ b/backend/ipp.c
@@ -2220,8 +2220,9 @@ main(int argc, /* I - Number of command-line args */
else if (ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_AUTHORIZATION_FAILED)
fputs("JOBSTATE: account-authorization-failed\n", stderr);
- if (ipp_status == IPP_STATUS_ERROR_NOT_AUTHORIZED || ipp_status == IPP_STATUS_ERROR_FORBIDDEN ||
- ipp_status == IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED)
+ if (job_canceled)
+ return (CUPS_BACKEND_OK);
+ else if (ipp_status == IPP_STATUS_ERROR_NOT_AUTHORIZED || ipp_status == IPP_STATUS_ERROR_FORBIDDEN || ipp_status == IPP_STATUS_ERROR_CUPS_AUTHENTICATION_CANCELED)
return (CUPS_BACKEND_AUTH_REQUIRED);
else if (ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_LIMIT_REACHED ||
ipp_status == IPP_STATUS_ERROR_CUPS_ACCOUNT_INFO_NEEDED ||
diff --git a/backend/org.cups.usb-quirks b/backend/org.cups.usb-quirks
index 44d6bb8cb..cd684d33f 100644
--- a/backend/org.cups.usb-quirks
+++ b/backend/org.cups.usb-quirks
@@ -242,6 +242,9 @@
# All Intermec devices (Issue #4553)
0x067e no-reattach
+# HP LaserJet 1015 (Issue #5617)
+0x03f0 0x0e17 delay-close
+
# HP LaserJet 1150 (Issue #4549)
0x03f0 0x0f17 delay-close
diff --git a/backend/usb-libusb.c b/backend/usb-libusb.c
index 7fc95c27e..042854bba 100644
--- a/backend/usb-libusb.c
+++ b/backend/usb-libusb.c
@@ -1,7 +1,7 @@
/*
* LIBUSB interface code for CUPS.
*
- * Copyright 2007-2015 by Apple Inc.
+ * Copyright 2007-2019 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
@@ -1746,8 +1746,7 @@ static void *read_thread(void *reference)
* Make sure this loop executes no more than once every 250 miliseconds...
*/
- if ((readstatus != LIBUSB_SUCCESS || rbytes == 0) &&
- (g.wait_eof || !g.read_thread_stop))
+ if ((g.wait_eof || !g.read_thread_stop))
{
gettimeofday(&now, NULL);
if (timercmp(&now, &end, <))