[Pkg-utopia-maintainers] Bug#809539: avahi-autoipd: dhclient hooks should check if avahi-autoipd is present before trying to run it
Philip Hands
phil at hands.com
Thu Dec 31 22:05:28 UTC 2015
Package: avahi-autoipd
Version: 0.6.32~rc+dfsg-1
Severity: minor
Tags: patch
Dear Maintainer,
If one removes (but does not purge) avahi-autoipd, one is likely to
start seeing this sort of thing in the system logs:
root: /etc/dhcp/dhclient-exit-hooks.d/zzz_avahi-autoipd returned non-zero exit status 127
=-=-=-=-=-=-=-=-
For those finding this as a result of a search for the above error message:
The problem is that the config files are left in place when one removes
a package, including these problematic scripts. To remove them one needs
to purge the package, thus:
sudo apt-get purge avahi-autoipd
=-=-=-=-=-=-=-=-
The bug in the package could be fixed by changing the scripts to use
this line instead (BTW the reason for inverting the test is that that
ensures that the script's return value is 0 if the file is missing):
[ ! -x /usr/sbin/avahi-autoipd ] || /usr/sbin/avahi-autoipd -wD $interface 2> /dev/null
(I didn't bother with an actual patch file, as that fix is so trivial)
HTH
Cheers, Phil.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages avahi-autoipd depends on:
ii adduser 3.113+nmu3
ii libc6 2.21-4
ii libdaemon0 0.14-6
Versions of packages avahi-autoipd recommends:
ii iproute 1:4.3.0-1
ii isc-dhcp-client 4.3.3-5
avahi-autoipd suggests no packages.
More information about the Pkg-utopia-maintainers
mailing list