summaryrefslogtreecommitdiffstats
path: root/abs/extra/cups/ppd-poll-with-client-conf.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/ppd-poll-with-client-conf.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/ppd-poll-with-client-conf.patch')
-rw-r--r--abs/extra/cups/ppd-poll-with-client-conf.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/extra/cups/ppd-poll-with-client-conf.patch b/abs/extra/cups/ppd-poll-with-client-conf.patch
new file mode 100644
index 0000000..8985fa3
--- /dev/null
+++ b/abs/extra/cups/ppd-poll-with-client-conf.patch
@@ -0,0 +1,23 @@
+Description: If an external server is used via client.conf and the DNS is inconsistent (ex: DNS gives "noname" for many IPs, reverse DNS gives one of these IPs for "noname") local PPDs can get polled for print queues instead of the PPDs of the external server
+Bug: http://www.cups.org/str.php?L2763
+
+--- a/cups/util.c
++++ b/cups/util.c
+@@ -1085,11 +1085,13 @@
+ http2 = http;
+ else if ((http2 = httpConnectEncrypt(hostname, port,
+ cupsEncryption())) == NULL)
+- {
+- DEBUG_puts("1cupsGetPPD3: Unable to connect to server");
++ if ((http2 = httpConnectEncrypt(http_hostname, http_port,
++ cupsEncryption())) == NULL)
++ {
++ DEBUG_puts("1cupsGetPPD3: Unable to connect to server");
+
+- return (HTTP_SERVICE_UNAVAILABLE);
+- }
++ return (HTTP_SERVICE_UNAVAILABLE);
++ }
+
+ /*
+ * Get a temp file...