1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## quiesce-bonjour-warning.dpatch by <mpitt@debian.org>
4
## DP: Silence Avahi Bonjour compat warning, since this can cause SIGPIPE
5
## DP: crashes if stderr is not available.
6
## DP: http://bugs.debian.org/497492, http://www.cups.org/str.php?L2931
9
diff -urNad trunk~/scheduler/printers.c trunk/scheduler/printers.c
10
--- trunk~/scheduler/printers.c 2008-09-06 11:47:42.000000000 +0200
11
+++ trunk/scheduler/printers.c 2008-09-06 11:52:39.000000000 +0200
16
+ /* silence Avahi Bonjour compat warning, since this can cause SIGPIPE
17
+ * crashes if stderr is not available */
18
+ setenv("AVAHI_COMPAT_NOWARN", "1", 0);
19
cupsdSetString(&p->product, ppd->product);
20
#endif /* HAVE_DNSSD */