Commit 891b874f authored by Till Kamppeter's avatar Till Kamppeter

Applications were not able to load the PPD file from the CUPS queues for IPP…

Applications were not able to load the PPD file from the CUPS queues for IPP network printers as they were confused with remote CUPS queues (CUPS STR #4725).
parent 0631de58
Description: Applications were not able to load the PPD file from the CUPS
queues for IPP network printers as they were confused with remote CUPS queues
Author: Till Kamppeter <till.kamppeter@gmail.com>
Bug-Upstream: https://www.cups.org/str.php?L4725
Last-Update: 2015-10-03
--- a/cups/util.c
+++ b/cups/util.c
@@ -1528,8 +1528,10 @@
}
if (device_uri &&
- (!strncmp(device_uri, "ipp://", 6) ||
- !strncmp(device_uri, "ipps://", 7) ||
+ (((!strncmp(device_uri, "ipp://", 6) ||
+ !strncmp(device_uri, "ipps://", 7)) &&
+ !strcmp(device_uri + strlen(device_uri) - strlen(resource),
+ resource)) ||
((strstr(device_uri, "._ipp.") != NULL ||
strstr(device_uri, "._ipps.") != NULL) &&
!strcmp(device_uri + strlen(device_uri) - 5, "/cups"))))
......@@ -3,6 +3,7 @@ usb-backend-fix-infinite-loop-when-usblp-module-attached.patch
usb-backend-delayed-closing-for-old-laserjets.patch
# patches sent upstream
fix-ppd-file-load-for-ipp-printers.patch
pwg-raster-attributes.patch
manpage-hyphen-minus.patch
rootbackends-worldreadable.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment