Package: ntp
Version: 1:4.2.0a+stable-8
Severity: minor

When using ntp and logcheck with IPv6 upstream ntp-servers, things go
wrong: there's lots of

Apr 22 16:37:30 spaans ntpd[6586]: synchronized to 2001:968:1::6666, stratum 1

being mailed to the admin.

Upon inspection of the relevant logcheck-rules, I also found a minor
mistake: for IPv4 addresses, the used regex was [0-9.]{7,15} which will
match anything between 7 and 15 characters, since . is the wildcard
operator, which in this case needs to be escaped.

First try at a patch attached, other ntp-* packages might need similar
fixes.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.12-rc2-git
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages ntp depends on:
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libcap1                     1:1.10-14    support for getting/setting POSIX.
ii  libreadline5                5.0-10       GNU readline and history libraries
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries
ii  perl-modules                5.8.4-8      Core Perl modules
ii  psmisc                      21.6-1       Utilities that use the proc filesy

-- no debconf information

-- 
Jasper Spaans                                       http://jsp.vs19.net/
 17:50:58 up 10292 days,  8:37, 0 users, load average: 5.10 5.81 5.88
         There already is an object oriented version of COBOL.
             It's called "ADD ONE TO COBOL GIVING COBOL."
--- ntp~        2005-04-22 17:39:55.000000000 +0200
+++ ntp 2005-04-22 17:39:55.000000000 +0200
@@ -1,8 +1,8 @@
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: time reset 
[+-]*[0-9]{1,2}\.[0-9]{6} s$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: synchronisation lost$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: no servers reachable$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: synchronized to 
[0-9.]{7,15}, stratum [0-9]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: synchronized to 
[0-9a-fA-F\.:]+, stratum [0-9]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: synchronized to 
LOCAL\([0-9]+\), stratum [0-9]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: kernel time sync 
(disabled|enabled) [0-9]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: precision = [0-9]+\.[0-9]+ 
usec$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: peer [.0-9]{7,15} now 
(in)?valid$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: peer [0-9a-fA-F\.:]+ now 
(in)?valid$

Attachment: signature.asc
Description: Digital signature

Reply via email to