2 https://github.com/lathiat/avahi/commit/a2696da2f2c50ac43b6c4903f72290d5c3fa9f6f
3 and modified to apply with the current version 0.7.
5 --- avahi-0.7/avahi-daemon/dbus-protocol.c.orig 2023-04-23 23:24:34.611460338 -0700
6 +++ avahi-0.7/avahi-daemon/dbus-protocol.c 2023-04-23 23:28:32.220077728 -0700
10 t = avahi_alternative_host_name(n);
11 - avahi_dbus_respond_string(c, m, t);
14 + avahi_dbus_respond_string(c, m, t);
16 + return DBUS_HANDLER_RESULT_HANDLED;
18 + return avahi_dbus_respond_error(c, m, AVAHI_ERR_NOT_FOUND, "Hostname not found");
21 - return DBUS_HANDLER_RESULT_HANDLED;
23 } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetAlternativeServiceName")) {
29 t = avahi_alternative_service_name(n);
30 - avahi_dbus_respond_string(c, m, t);
33 + avahi_dbus_respond_string(c, m, t);
35 + return DBUS_HANDLER_RESULT_HANDLED;
37 + return avahi_dbus_respond_error(c, m, AVAHI_ERR_NOT_FOUND, "Service not found");
40 - return DBUS_HANDLER_RESULT_HANDLED;
42 } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "EntryGroupNew")) {