summaryrefslogtreecommitdiff
path: root/print/cups/patches
diff options
context:
space:
mode:
authorjlam <jlam>2002-06-09 20:59:34 +0000
committerjlam <jlam>2002-06-09 20:59:34 +0000
commit377a32ab41571568d6e2aef1f9c9bec9535b9402 (patch)
tree06b1f112f36d86360a0002ae9f4bca54de958173 /print/cups/patches
parent8bff3eca0e18367df6e3d310d4ba29da11282d72 (diff)
downloadpkgsrc-377a32ab41571568d6e2aef1f9c9bec9535b9402.tar.gz
Apply patch from pkg/16643 submitted by Tero Kivinen <kivinen@ssh.fi> to
fix the problem where cupsd dumps core if BrowseProtocols is empty in the config file. The fix was taken from the CUPS CVS.
Diffstat (limited to 'print/cups/patches')
-rw-r--r--print/cups/patches/patch-aa16
1 files changed, 16 insertions, 0 deletions
diff --git a/print/cups/patches/patch-aa b/print/cups/patches/patch-aa
new file mode 100644
index 00000000000..51d6dc7a737
--- /dev/null
+++ b/print/cups/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.12 2002/06/09 20:59:35 jlam Exp $
+
+--- scheduler/main.c.orig Wed Feb 13 12:21:36 2002
++++ scheduler/main.c
+@@ -476,9 +476,9 @@
+ * Update the browse list as needed...
+ */
+
+- if (Browsing)
++ if (Browsing && BrowseProtocols)
+ {
+- if (FD_ISSET(BrowseSocket, &input))
++ if (BrowseSocket >= 0 && FD_ISSET(BrowseSocket, &input))
+ UpdateCUPSBrowse();
+
+ if (PollPipe >= 0 && FD_ISSET(PollPipe, &input))