Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Mar 2022 23:13:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262391] ntp.conf contains wrong information regarding leapfile
Message-ID:  <bug-262391-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262391

            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 :=20

# 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 :

    https://www.ietf.org/timezones/data/leap-seconds.list

See bottom of :

    https://support.ntp.org/bin/view/Support/ConfiguringNTP#Section_6.14.

A trivial fetch "just works" :=20

europa#=20
europa# uname -apKU=20
FreeBSD europa 13.0-RELEASE-p7 FreeBSD 13.0-RELEASE-p7 #0: Mon Jan 31 18:24=
:03
UTC 2022=20=20=20=20
root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC=
=20
amd64 amd64 1300139 1300139
europa#=20
europa# fetch https://www.ietf.org/timezones/data/leap-seconds.list=20
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#=20
europa# ls -l leap-seconds.list=20
-rw-r--r--  1 root  wheel  10659 Oct 22 02:20 leap-seconds.list
europa#=20
europa# file leap-seconds.list=20
leap-seconds.list: ASCII text
europa#=20
europa# wc -l leap-seconds.list=20
     255 leap-seconds.list
europa#=20
europa# head leap-seconds.list=20
#
#       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.
europa#=20

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.=20

Dennis Clarke

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262391-227>