[Pkg-utopia-maintainers] Bug#422368: /etc/avahi/etc/localtime keeps changing during boot

Michael Tautschnig tautschn at model.in.tum.de
Sat May 5 12:40:38 UTC 2007


Package: avahi-daemon
Version: 0.6.16-3etch1
Severity: important
Justification: Violates policy/FHS

Upon startup, the following code is executed by /etc/init.d/avahi-daemon: 

    if [ -s /etc/localtime ]; then
        if [ ! -d /etc/avahi/etc ]; then
            mkdir -p /etc/avahi/etc >/dev/null 2>&1
        fi
        cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
    fi;

The mkdir and cp operations, apart from being very very strange, violate the FHS
implication of /etc/ being static. Maybe there is some upstream bug that expects
to find localtime in /etc/avahi/etc/localtime, but in any case this could be
easily worked around by creating /etc/avahi/etc and a symlink to /etc/localtime
within the postinst script. IMHO.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20070505/0253e640/attachment.pgp


More information about the Pkg-utopia-maintainers mailing list