diff options
author | jlam <jlam> | 2002-06-09 20:59:34 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-06-09 20:59:34 +0000 |
commit | 377a32ab41571568d6e2aef1f9c9bec9535b9402 (patch) | |
tree | 06b1f112f36d86360a0002ae9f4bca54de958173 /print/cups/patches | |
parent | 8bff3eca0e18367df6e3d310d4ba29da11282d72 (diff) | |
download | pkgsrc-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-aa | 16 |
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)) |