Subject: bin/23707: ntpdate ignoring -s option
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rearnsha@arm.com>
List: netbsd-bugs
Date: 12/10/2003 10:36:50
>Number:         23707
>Category:       bin
>Synopsis:       ntpdate ignoring -s option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 10 10:37:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Richard Earnshaw
>Release:        NetBSD 1.6ZG (INTEGRATOR) #0: Mon Dec  8 13:55:02 GMT 2003
>Organization:
ARM
>Environment:
NetBSD 1.6ZG (INTEGRATOR) #1: Tue Dec  9 18:31:09 GMT 2003  rearnsha@pc960.cambridge.arm.com:/work/rearnsha/netbsd/build/src/evbarm/sys/arch/evbarm/compile/INTEGRATOR evbarm
>Description:
the new version of ntpdate is not fully respecting the -s option and is sending output to stdout.  Hence when run from cron emails are generated each time the program runs.

Previous versions only sent messages to the syslog when used with -s
>How-To-Repeat:
add 
ntpdate -s <server>

to cron.

Let it run, you will get emails of the form:


Subject: Cron <root@shark2> /usr/sbin/ntpdate -s fw-lan fw2-lan
To: root@shark2.cambridge.arm.com
From: root@shark2.cambridge.arm.com (Cron Daemon)
Date: Wed, 10 Dec 2003 10:30:16 GMT

host found : fw-lan.cambridge.arm.com
host found : fw2-lan.cambridge.arm.com
Looking for host fw-lan and service ntp
Looking for host fw2-lan and service ntp





>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: