Package: ddclient
Version: 3.8.0-11.5
Followup-For: Bug #334437

This bug still exists in version 3.8.0. The solution proposed over six
years ago by Dave Dykstra, commenting out the buggy lines, works fine.
Here is a patch that does simply that.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ddclient depends on:
ii  debconf [debconf-2.0]  1.5.43
ii  initscripts            2.88dsf-22.1
ii  lsb-base               4.1+Debian4
ii  perl [perl5]           5.14.2-11

Versions of packages ddclient recommends:
ii  libio-socket-ssl-perl  1.74-1

ddclient suggests no packages.

-- debconf information excluded
--- usr/sbin/ddclient~	2012-03-06 13:02:39.000000000 -0800
+++ usr/sbin/ddclient	2012-08-08 03:47:31.000000000 -0700
@@ -2099,12 +2099,12 @@
     } elsif (defined($sub) && &$sub($host)) {
 	$update = 1;
 
-    } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) ||
-	     ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) ||
-	     ($cache{$host}{'mx'} ne $config{$host}{'mx'}) ||
-	     ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) {
-	info("updating %s because host settings have been changed.", $host);
-	$update = 1;
+    # } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) ||
+    # 	     ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) ||
+    # 	     ($cache{$host}{'mx'} ne $config{$host}{'mx'}) ||
+    # 	     ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) {
+    # 	info("updating %s because host settings have been changed.", $host);
+    # 	$update = 1;
 
     } else {
 	success("%s: skipped: IP address was already set to %s.", $host, $ip)

Reply via email to