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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Mar 2022 23:13:05 UTC

            Bug ID: 262391
           Summary: ntp.conf contains wrong information regarding leapfile
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: dclarke@blastwave.org

The default ntp.conf file has a comment on the bottom that says : 

# See http://support.ntp.org/bin/view/Support/ConfiguringNTP#Section_6.14.
# for documentation regarding leapfile. Updates to the file can be obtained
# from ftp://time.nist.gov/pub/ or ftp://tycho.usno.navy.mil/pub/ntp/.
# Use either leapfile in /etc/ntp or periodically updated leapfile in /var/db.
#leapfile "/etc/ntp/leap-seconds"

However, as far as I can tell, neither of those ftp sites exist. The
dns records for either do not exist. However one may attain the recent
leap seconds file from :


See bottom of :


A trivial fetch "just works" : 

europa# uname -apKU 
FreeBSD europa 13.0-RELEASE-p7 FreeBSD 13.0-RELEASE-p7 #0: Mon Jan 31 18:24:03
UTC 2022    
amd64 amd64 1300139 1300139
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# ls -l leap-seconds.list 
-rw-r--r--  1 root  wheel  10659 Oct 22 02:20 leap-seconds.list
europa# file leap-seconds.list 
leap-seconds.list: ASCII text
europa# wc -l leap-seconds.list 
     255 leap-seconds.list
europa# head leap-seconds.list 
#       In the following text, the symbol '#' introduces
#       a comment, which continues from that symbol until
#       the end of the line. A plain comment line has a
#       whitespace character following the comment indicator.
#       There are also special comment lines defined below.
#       A special comment will always have a non-whitespace
#       character in column 2.
#       A blank line should be ignored.

It may be reasonable to update the default ntp.conf file as well as
fetch the leap seconds file during installation if the ntp option
has been selected. 

Dennis Clarke

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