]> CyberLeo.Net >> Repos - FreeBSD/stable/10.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)
commit827240201c714b9efeea790e6245141e6b59a1f6
treec59a300721287e23bd64e4e76aa784202daeda4d
parenta2c4a186842a00fad5c33735b39d4ac6bd66a35f
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/10@304879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/ntp/leap-seconds
etc/rc.d/ntpd