Package: ddclient
Version: 3.8.2-2
Severity: important

Dear Maintainer

The hook scripts in the dhclient-exit-hooks.d directory are included (using the
dot command) in the /sbin/dhclient-script. Using explicit "exit" in a hook
script leads to immediate stop so that other hook scripts will be missed.

Using round brackets (..) around the executable part in the ddclient hook
script renders the "exit" directive into a stop/break statement while
preserving the exit code which is interpreted in /sbin/dhclient-script.

-- System Information:
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:        8.0
Codename:       jessie
Architecture: armv7l

Kernel: Linux 4.4.13-v7+ (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 ddclient depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  initscripts            2.88dsf-59
ii  lsb-base               4.1+Debian13+rpi1+nmu1
ii  perl [perl5]           5.20.2-3+deb8u6

Versions of packages ddclient recommends:
ii  libio-socket-ssl-perl  2.002-2+deb8u1

ddclient suggests no packages.

-- Configuration Files:
/etc/dhcp/dhclient-exit-hooks.d/ddclient changed:

( # -- fixed

[ -x /usr/sbin/ddclient ] || exit 0
[ -f /etc/default/ddclient ] || exit 0
.. /etc/default/ddclient
[ $run_dhclient = "true" ] || exit 0
case $reason in
        /usr/bin/logger -t dhclient $reason, updating IP address with ddclient
        /usr/sbin/ddclient -daemon=0 -syslog > /dev/null 2>&1

) # -- fixed

-- debconf information excluded

Reply via email to