[pkg-ntp-maintainers] Bug#413692: ntpdate: incorrectly handles an
empty ntp.conf
Filippo Giunchedi
filippo at debian.org
Tue Mar 6 17:38:39 CET 2007
Package: ntpdate
Version: 1:4.2.2.p4+dfsg-2
Severity: normal
Hi,
consider the following case (admittedly a corner one, but still valid)
# touch /etc/ntp.conf
# sh -x ntpdate-debian
+ set -e
+ '[' -r /etc/default/ntpdate ']'
+ . /etc/default/ntpdate
++ NTPDATE_USE_NTP_CONF=yes
++ NTPSERVERS=it.pool.ntp.org
++ NTPOPTIONS=
+ '[' yes = yes ']'
+ '[' -r /etc/ntp.conf.dhcp ']'
+ '[' -r /etc/ntp.conf ']'
+ file=/etc/ntp.conf
+ '[' -n /etc/ntp.conf ']'
++ sed -rne 's/^(server|peer) ([-_.[:alnum:]]+).*$/\2/p' /etc/ntp.conf
++ grep -v '^127\.127\.'
+ NTPSERVERS=
# echo $?
1
#
while removing /etc/ntp.conf makes ntpdate-debian work as expected.
filippo
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (600, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.14-susp2
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages ntpdate depends on:
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libcap1 1:1.10-14 support for getting/setting POSIX.
ii libssl0.9.8 0.9.8e-3 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