File avahi-daemon-check-dns-suse.patch of Package avahi

--- avahi-daemon-check-dns.sh.debian	2021-01-27 15:28:07.832795734 -0600
+++ avahi-daemon-check-dns.sh	2021-01-27 15:39:35.364471899 -0600
@@ -5,15 +5,15 @@
 
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 
-RUNDIR="/var/run/avahi-daemon/"
+RUNDIR="/var/run/avahi-daemon"
 DISABLE_TAG="$RUNDIR/disabled-for-unicast-local"
 NS_CACHE="$RUNDIR/checked_nameservers"
 
-AVAHI_DAEMON_DETECT_LOCAL=1
+AVAHI_DAEMON_DETECT_LOCAL=yes
 
-test -f /etc/default/avahi-daemon && . /etc/default/avahi-daemon
+test -f /etc/sysconfig/avahi && . /etc/sysconfig/avahi
 
-if [ "$AVAHI_DAEMON_DETECT_LOCAL" != "1" ]; then
+if [ "$AVAHI_DAEMON_DETECT_LOCAL" != "yes" ]; then
   exit 0
 fi
 
--- avahi-daemon.if-up.debian	2021-01-27 16:09:50.922179542 -0600
+++ avahi-daemon.if-up	2021-01-27 16:11:54.942842665 -0600
@@ -3,10 +3,10 @@
 # Don't run the avahi-daemon unicast local check while bringing up
 # the loopback device; it's not necessary until we bring up a real network
 # device
-[ "$IFACE" != "lo" ] || exit 0
+[ "$2" != "lo" ] || exit 0
 
 # If we have an unicast .local domain, we immediately disable avahi to avoid
 # conflicts with the multicast IP4LL .local domain
 if [ -x /usr/lib/avahi/avahi-daemon-check-dns.sh ] ; then
-  exec /usr/lib/avahi/avahi-daemon-check-dns.sh
+  sudo -u avahi -g avahi /usr/lib/avahi/avahi-daemon-check-dns.sh
 fi
openSUSE Build Service is sponsored by