[pkg-ntp-maintainers] Bug#411200: ntpdate: Still uses dhcp-provided servers after dhcp stops

Torne torne at wolfpuppy.org.uk
Sat Feb 17 01:57:46 CET 2007


Package: ntpdate
Version: 1:4.2.2.p4+dfsg-1
Severity: normal
Tags: patch

The dhcp script for ntpdate only removes the dhcp-configured servers on
lease expiry or failure to acquire a lease; it leaves them there if the
dhcp service is stopped or the lease is explicitly released. This means
that when I go from being connected via DHCP to being connected by a
static configuration, /etc/default/ntpdate.dhcp is never removed and it
doesn't revert back to using the servers specified in
/etc/default/ntpdate. The change is simple if you think this is a
desirable fix:


--- ntpdate.old	2007-02-17 00:07:24.000000000 +0000
+++ ntpdate	2007-02-17 00:07:27.000000000 +0000
@@ -35,7 +35,7 @@
 		BOUND|RENEW|REBIND|REBOOT)
 			ntp_servers_setup_add
 			;;
-		EXPIRE|FAIL)
+		EXPIRE|FAIL|RELEASE|STOP)
 			ntp_servers_setup_remove
 			;;
 	esac


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: arm (armv4l)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.34-j720
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages ntpdate depends on:
ii  libc6                       2.3.6.ds1-11 GNU C Library: Shared libraries
ii  libcap1                     1:1.10-14    support for getting/setting POSIX.
ii  libssl0.9.8                 0.9.8c-4     SSL shared libraries
ii  netbase                     4.29         Basic TCP/IP networking system

ntpdate recommends no packages.

-- no debconf information




More information about the pkg-ntp-maintainers mailing list