From: Michael R Sweet Date: Fri, 5 Apr 2024 20:43:38 +0000 (-0400) Subject: Fix document-unprintable-error support (Issue #391) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fa64459a3fa4c4897380375542e0080819c60db;p=thirdparty%2Fcups.git Fix document-unprintable-error support (Issue #391) --- diff --git a/backend/ipp.c b/backend/ipp.c index 6ad46a508a..749ad085d8 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -1899,7 +1899,7 @@ main(int argc, /* I - Number of command-line args */ if (ippContainsString(reasons, "document-format-error")) ipp_status = IPP_STATUS_ERROR_DOCUMENT_FORMAT_ERROR; - else if (ippContainsString(reasons, "document-unprintable")) + else if (ippContainsString(reasons, "document-unprintable-error")) ipp_status = IPP_STATUS_ERROR_DOCUMENT_UNPRINTABLE; ippDelete(response); @@ -2690,7 +2690,7 @@ monitor_printer( new_reasons |= _CUPS_JSR_JOB_RELEASE_WAIT; else if (!strcmp(attr->values[i].string.text, "document-format-error")) new_reasons |= _CUPS_JSR_DOCUMENT_FORMAT_ERROR; - else if (!strcmp(attr->values[i].string.text, "document-unprintable")) + else if (!strcmp(attr->values[i].string.text, "document-unprintable-error")) new_reasons |= _CUPS_JSR_DOCUMENT_UNPRINTABLE; if (!job_canceled && (!strncmp(attr->values[i].string.text, "job-canceled-", 13) || !strcmp(attr->values[i].string.text, "aborted-by-system")))