2011-04-25 06:02:43 -04:00
|
|
|
$OpenBSD: patch-avahi-daemon_main_c,v 1.5 2011/04/25 10:02:43 ajacoutot Exp $
|
|
|
|
--- avahi-daemon/main.c.orig Wed Feb 23 14:10:07 2011
|
|
|
|
+++ avahi-daemon/main.c Mon Apr 25 11:42:00 2011
|
2010-07-17 10:12:38 -04:00
|
|
|
@@ -320,6 +320,11 @@ static void update_browse_domains(void) {
|
2009-06-03 12:27:12 -04:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ if (!resolv_conf_search_domains) {
|
|
|
|
+ avahi_server_set_browse_domains(avahi_server, NULL);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
l = avahi_string_list_copy(config.server_config.browse_domains);
|
|
|
|
|
|
|
|
for (p = resolv_conf_search_domains, n = 0; *p && n < BROWSE_DOMAINS_MAX; p++, n++) {
|
2011-04-25 06:02:43 -04:00
|
|
|
@@ -1101,8 +1106,10 @@ static int run_server(DaemonConfig *c) {
|
2009-06-03 15:42:55 -04:00
|
|
|
|
2010-07-31 10:33:20 -04:00
|
|
|
ignore_signal(SIGPIPE);
|
2009-06-03 15:42:55 -04:00
|
|
|
|
|
|
|
+#ifndef __OpenBSD__ // no NSS in OpenBSD
|
|
|
|
if (!(nss_support = avahi_nss_support()))
|
|
|
|
avahi_log_warn("WARNING: No NSS support for mDNS detected, consider installing nss-mdns!");
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
if (!(simple_poll_api = avahi_simple_poll_new())) {
|
|
|
|
avahi_log_error("Failed to create main loop object.");
|