a bug in dhcp exit hook script of ddclient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ddclient (Debian) |
Fix Released
|
Unknown
|
|||
ddclient (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
the ddclient DHCP exit hook script looks like:
[ -x /usr/sbin/ddclient ] || exit 0
[ -f /etc/default/
. /etc/default/
[ $run_dhclient = "true" ] || exit 0
case $reason in
BOUND | RENEW | REBIND)
;;
*)
;;
esac
The error is on line 7. As all the shell programming guides say, when checking a variable you have to quote it, or in case the variable is null (as it is in my case) you will get an error:
/sbin/dhclient-
so the correct line 7 for this script is:
[ "$run_dhclient" = "true" ] || exit 0
Please fix it in LTS also as people start to complain on the forums about this bug already.
Changed in ddclient (Debian): | |
status: | Unknown → New |
Changed in ddclient (Debian): | |
status: | New → Fix Released |
Changed in ddclient (Ubuntu): | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.