From: Michael R Sweet Date: Fri, 23 Mar 2018 01:47:56 +0000 (-0400) Subject: Also support /ipp/print/queuename. X-Git-Tag: v2.3b4~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b4895dfe73c5b4381edd7ccfb0b1fec125900b9;p=thirdparty%2Fcups.git Also support /ipp/print/queuename. --- diff --git a/cups/dest.c b/cups/dest.c index 960370f017..55f6602c73 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -1281,6 +1281,12 @@ cupsGetDestWithURI(const char *name, /* I - Desired printer name or @code NULL@ name = resource + 10; info = temp; } + else if (!strncmp(resource, "/ipp/print/", 11)) + { + snprintf(temp, sizeof(temp), "%s @ %s", resource + 11, hostname); + name = resource + 11; + info = temp; + } else { name = hostname;