summaryrefslogtreecommitdiffstats
path: root/abs/extra/cups/get-ppd-file-for-statically-configured-ipp-shared-queues.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-03-26 15:01:49 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-03-26 15:01:49 (GMT)
commit124b71a11d5478228b9001a22873bdfd18d952aa (patch)
tree7961de1e0f4b3e2be11a3f70c8eed3998f311a65 /abs/extra/cups/get-ppd-file-for-statically-configured-ipp-shared-queues.patch
parente29c7b67938ff9384d304c36aa6259d694549933 (diff)
downloadlinhes_pkgbuild-124b71a11d5478228b9001a22873bdfd18d952aa.zip
linhes_pkgbuild-124b71a11d5478228b9001a22873bdfd18d952aa.tar.gz
linhes_pkgbuild-124b71a11d5478228b9001a22873bdfd18d952aa.tar.bz2
cups: update to 1.7.1
Diffstat (limited to 'abs/extra/cups/get-ppd-file-for-statically-configured-ipp-shared-queues.patch')
-rw-r--r--abs/extra/cups/get-ppd-file-for-statically-configured-ipp-shared-queues.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/extra/cups/get-ppd-file-for-statically-configured-ipp-shared-queues.patch b/abs/extra/cups/get-ppd-file-for-statically-configured-ipp-shared-queues.patch
new file mode 100644
index 0000000..ed132d7
--- /dev/null
+++ b/abs/extra/cups/get-ppd-file-for-statically-configured-ipp-shared-queues.patch
@@ -0,0 +1,31 @@
+Description: Applications could not get the PPD file for
+ statically-configured IPP-shared print queues
+Author: Till Kamppeter <till.kamppeter@gmail.com>
+Bug-Upstream: http://cups.org/str.php?L4178
+Last-Updated: 2012-09-19
+
+--- a/cups/util.c
++++ b/cups/util.c
+@@ -1731,6 +1731,22 @@
+
+ return (1);
+ }
++ else if (device_uri &&
++ (!strncmp(device_uri, "ipp:", 4) != NULL ||
++ !strncmp(device_uri, "ipps:", 5) != NULL))
++ {
++ /*
++ * Statically-configured IPP shared printer.
++ */
++
++ httpSeparateURI(HTTP_URI_CODING_ALL,
++ device_uri,
++ scheme, sizeof(scheme), username, sizeof(username),
++ host, hostsize, port, resource, resourcesize);
++ ippDelete(response);
++
++ return (1);
++ }
+ else if ((attr = ippFindAttribute(response, "member-uris",
+ IPP_TAG_URI)) != NULL)
+ {