[Bug 262391] ntp.conf contains wrong information regarding leapfile

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Mar 2022 23:17:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262391

--- Comment #1 from Dennis Clarke <dclarke@blastwave.org> ---
Further details.

If we mrely use the leap seconds file provided by the base install
then we get the message : 

Mar  6 22:54:22 europa ntpd[1194]: ntpd 4.2.8p15-a (1): Starting
Mar  6 22:54:22 europa ntpd[1194]: Command line: /usr/sbin/ntpd -p
/var/db/ntp/ntpd.pid -c /etc/ntp.conf
Mar  6 22:54:22 europa ntpd[1194]:
----------------------------------------------------
Mar  6 22:54:22 europa ntpd[1194]: ntp-4 is maintained by Network Time
Foundation,
Mar  6 22:54:22 europa ntpd[1194]: Inc. (NTF), a non-profit 501(c)(3)
public-benefit
Mar  6 22:54:22 europa ntpd[1194]: corporation.  Support and training for ntp-4
are
Mar  6 22:54:22 europa ntpd[1194]: available at https://www.nwtime.org/support
Mar  6 22:54:22 europa ntpd[1194]:
----------------------------------------------------
Mar  6 22:54:22 europa ntpd[1195]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): good hash signature
Mar  6 22:54:22 europa ntpd[1195]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): loaded, expire=2021-06-28T00:00:00Z
last=2017-01-01T00:00:00Z ofs=37
Mar  6 22:54:22 europa ntpd[1195]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): expired 252 days ago

It is trivial to replace the file with the correct revision. 

europa# 
europa# fetch https://www.ietf.org/timezones/data/leap-seconds.list 
fetch: https://www.ietf.org/timezones/data/leap-seconds.list: size of remote
file is not known
leap-seconds.list                                       10 kB 3151 kBps    00s
europa# 
europa# 
europa# /etc/rc.d/ntpd stop 
Stopping ntpd.
Waiting for PIDS: 1195.
europa# 
europa# cp -p leap-seconds.list /var/db/ntpd.leap-seconds.list
europa# 
europa# /etc/rc.d/ntpd start
Starting ntpd.
europa# 

At which point we see the message : 

Mar  6 23:14:11 europa ntpd[1266]: ntpd 4.2.8p15-a (1): Starting
Mar  6 23:14:11 europa ntpd[1266]: Command line: /usr/sbin/ntpd -p
/var/db/ntp/ntpd.pid -c /etc/ntp.conf
Mar  6 23:14:11 europa ntpd[1266]:
----------------------------------------------------
Mar  6 23:14:11 europa ntpd[1266]: ntp-4 is maintained by Network Time
Foundation,
Mar  6 23:14:11 europa ntpd[1266]: Inc. (NTF), a non-profit 501(c)(3)
public-benefit
Mar  6 23:14:11 europa ntpd[1266]: corporation.  Support and training for ntp-4
are
Mar  6 23:14:11 europa ntpd[1266]: available at https://www.nwtime.org/support
Mar  6 23:14:11 europa ntpd[1266]:
----------------------------------------------------
Mar  6 23:14:11 europa ntpd[1267]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): good hash signature
Mar  6 23:14:11 europa ntpd[1267]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): loaded, expire=2022-06-28T00:00:00Z
last=2017-01-01T00:00:00Z ofs=37

Works as promised ... near as anyone can tell.

Dennis Clarke

-- 
You are receiving this mail because:
You are the assignee for the bug.