From: Michael R Sweet Date: Thu, 11 Jan 2018 16:32:01 +0000 (-0500) Subject: Printing to old CUPS servers has been fixed (Issue #5211) X-Git-Tag: v2.3b2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a3d63e63841e91e75ca2e3e7626f8785da758dc;p=thirdparty%2Fcups.git Printing to old CUPS servers has been fixed (Issue #5211) cups/dest-options.c: - Fix IPP version check in cupsCopyDestInfo. --- diff --git a/CHANGES.md b/CHANGES.md index a7ba32c037..66e4c28306 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,4 @@ -CHANGES - 2.3b2 - 2018-01-10 +CHANGES - 2.3b2 - 2018-01-11 ============================ @@ -9,6 +9,7 @@ Changes in CUPS v2.3b2 - Build fixes (Issue #5217) - The `cupsGetDests` and `cupsEnumDests` functions no longer filter out local print services like IPP USB devices (Issue #5206) +- Printing to old CUPS servers has been fixed (Issue #5211) - The `ppdInstallableConflict` tested too many constraints (Issue #5213) - All HTTP field values can now be longer than `HTTP_MAX_VALUE` bytes (Issue #5216) diff --git a/cups/dest-options.c b/cups/dest-options.c index 18abebf06a..11a1b10fbb 100644 --- a/cups/dest-options.c +++ b/cups/dest-options.c @@ -1,7 +1,7 @@ /* * Destination option/media support for CUPS. * - * Copyright 2012-2017 by Apple Inc. + * Copyright 2012-2018 by Apple Inc. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ @@ -722,6 +722,8 @@ cupsCopyDestInfo( */ request = ippNewRequest(IPP_OP_GET_PRINTER_ATTRIBUTES); + + ippSetVersion(request, version / 10, version % 10); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, uri); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,