Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Sep 2020 10:16:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 249163] /var/db/ntpd.leap-seconds.list is initialized with an expired file
Message-ID:  <bug-249163-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 249163
           Summary: /var/db/ntpd.leap-seconds.list is initialized with an
                    expired file
           Product: Base System
           Version: 11.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: martin@lispworks.com

I have just set up a 11.3-RELEASE-p13 VM with ntpd_enable=3D"YES" in /etc/r=
c.conf
and found that the mechanism for installing the first
/var/db/ntpd.leap-seconds.list always installs an expired file (expires 28
December 2019).

The problem is in /etc/rc.d/ntpd: ntpd_precmd calls ntpd_init_leapfile, whi=
ch
copies the expired file /etc/ntp/leap-seconds to
/var/db/ntpd.leap-seconds.list. Then, ntpd_fetch_leapfile is never called
because /var/db/ntpd.leap-seconds.list exists.

As a result, ntpd gives these messages on startup:

Sep  4 18:09:27 test ntpd[3477]: ntpd 4.2.8p12-a (1): Starting
Sep  4 18:09:27 test ntpd[3477]: Command line: /usr/sbin/ntpd -c /etc/ntp.c=
onf
-p /var/run/ntpd.pid -f /var/db/ntpd.drift
Sep  4 18:09:27 test ntpd[3477]:
----------------------------------------------------
Sep  4 18:09:27 test ntpd[3477]: ntp-4 is maintained by Network Time
Foundation,
Sep  4 18:09:27 test ntpd[3477]: Inc. (NTF), a non-profit 501(c)(3)
public-benefit
Sep  4 18:09:27 test ntpd[3477]: corporation.  Support and training for ntp=
-4
are
Sep  4 18:09:27 test ntpd[3477]: available at https://www.nwtime.org/support
Sep  4 18:09:27 test ntpd[3477]:
----------------------------------------------------
Sep  4 18:09:27 test ntpd[3478]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): good hash signature
Sep  4 18:09:27 test ntpd[3478]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): loaded, expire=3D2019-12-28T00:00:00Z
last=3D2017-01-01T00:00:00Z ofs=3D37
Sep  4 18:09:27 test ntpd[3478]: leapsecond file
('/var/db/ntpd.leap-seconds.list'): expired 252 days ago

--=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-249163-227>