From owner-freebsd-bugs@freebsd.org Mon Sep 7 10:16:09 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 601CE3EDC51 for ; Mon, 7 Sep 2020 10:16:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BlPLx1ymHz3fr3 for ; Mon, 7 Sep 2020 10:16:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 412E53EDEB4; Mon, 7 Sep 2020 10:16:09 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 40F2A3EDEB3 for ; Mon, 7 Sep 2020 10:16:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BlPLx125Lz3fnR for ; Mon, 7 Sep 2020 10:16:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DF0BA1D66E for ; Mon, 7 Sep 2020 10:16:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 087AG8DH021437 for ; Mon, 7 Sep 2020 10:16:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 087AG8ka021436 for bugs@FreeBSD.org; Mon, 7 Sep 2020 10:16:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 249163] /var/db/ntpd.leap-seconds.list is initialized with an expired file Date: Mon, 07 Sep 2020 10:16:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 11.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: martin@lispworks.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2020 10:16:09 -0000 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.=