]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r304779, r304780, r304781, r304782, r304802
authorcy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 27 Aug 2016 02:53:21 +0000 (02:53 +0000)
committercy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 27 Aug 2016 02:53:21 +0000 (02:53 +0000)
commit71338424c9a9c4683fbcd037d0f898ca657d79d9
tree2892e3fcf46356dd9bae1dcf69e6c584068f06d5
parent38d02ddb9112c43ff99ad42d8528ef49fa99822c
MFC r304779, r304780, r304781, r304782, r304802

r304779:

  Revert r298887 (spelling fix) and remove $FreeBSD$ because text changes
  to leap-seconds invaldidates validation hash at the end of the file.

  Remove svn:keywords and replace with fbsd:nokeywords=yes to
  support this change.

r304780:

  Change the algorithm by which /var/db/leap-seconds is updated.

  1. Use the leap-seconds version number (update time) to determine
     whether to update the file or not.

  2. If the version numbers of the files is the same, use the later
     expiry date to determine which file to use.

  Suggested by: ian@

r304781:

  Add logic to replace the working ntp leap-seconds file in /var/db
  if it contains a $FreeBSD$ header. The header will cause the file
  to fail checksum of the hash causing ntpd to ignore the file.

r304782:

  Make validation of the leap-seconds file unconditional.

r304802:

  Remove the gratuitous check for $FreeBSD$ and rename the function
  to ntpd_init_leapfile, to ensure a copy exists in /var/db if a copy
  isn't already there.

  Reported by: ache@

git-svn-id: svn://svn.freebsd.org/base/stable/9@304879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/ntp/leap-seconds
etc/rc.d/ntpd