From fc03bc04d31291ea8dce29c890d7442c601dc3f6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sep 25 2007 00:20:49 +0000 Subject: fix segfault when no domain is defined in resolv.conf --- diff --git a/avahi-0.6.21-resolv-conf.patch b/avahi-0.6.21-resolv-conf.patch new file mode 100644 index 0000000..f891174 --- /dev/null +++ b/avahi-0.6.21-resolv-conf.patch @@ -0,0 +1,14 @@ +Index: /trunk/avahi-daemon/main.c +=================================================================== +--- /trunk/avahi-daemon/main.c (revision 1513) ++++ /trunk/avahi-daemon/main.c (revision 1525) +@@ -317,4 +317,9 @@ + int n; + char **p; ++ ++ if (!resolv_conf_search_domains) { ++ avahi_server_set_browse_domains(avahi_server, NULL); ++ return; ++ } + + l = avahi_string_list_copy(config.server_config.browse_domains); diff --git a/avahi.spec b/avahi.spec index 217c78f..727373c 100644 --- a/avahi.spec +++ b/avahi.spec @@ -6,10 +6,10 @@ %endif Name: avahi Version: 0.6.21 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Local network service discovery Group: System Environment/Base -License: LGPL +License: LGPLv2 URL: http://avahi.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: dbus, expat @@ -40,6 +40,7 @@ Patch1: avahi-0.6.21-avahi-browse-help-fix.patch Patch2: avahi-0.6.3-MONO_SHARED_DIR.patch Patch3: avahi-0.6.21-initscript.patch Patch4: avahi-0.6.21-libdns_sd-fix.patch +Patch5: avahi-0.6.21-resolv-conf.patch %description Avahi is a system which facilitates service discovery on @@ -225,6 +226,7 @@ fashion with mDNS. %endif %patch3 -p0 -b .initscript %patch4 -p0 -b .dns_sd +%patch5 -p2 -b .resolv_conf %build @@ -485,6 +487,9 @@ fi %endif %changelog +* Tue Sep 25 2007 Lennart Poettering - 0.6.21-6 +- resolves #279301: fix segfault when no domains are configured in resolv.conf (pulled from upstream SVN r1525) + * Thu Sep 6 2007 Lennart Poettering - 0.6.21-5 - resolves #249044: Update init script to use runlevel 96 - resolves #251700: Fix assertion in libdns_sd-compat