svn commit: r300898 - stable/9/etc/rc.d

Cy Schubert cy at FreeBSD.org
Sat May 28 03:34:01 UTC 2016


Author: cy
Date: Sat May 28 03:34:00 2016
New Revision: 300898
URL: https://svnweb.freebsd.org/changeset/base/300898

Log:
  MFC r300638:
  
  Use the expiry date to determine whether to replace the DB copy of
  leapfile instead of using the leapfile serial number (create
  timestamp).
  
  PR:		209577

Modified:
  stable/9/etc/rc.d/ntpd
Directory Properties:
  stable/9/etc/   (props changed)
  stable/9/etc/rc.d/   (props changed)

Modified: stable/9/etc/rc.d/ntpd
==============================================================================
--- stable/9/etc/rc.d/ntpd	Sat May 28 03:33:06 2016	(r300897)
+++ stable/9/etc/rc.d/ntpd	Sat May 28 03:34:00 2016	(r300898)
@@ -107,8 +107,8 @@ ntpd_fetch_leapfile() {
 			$verbose fetching $url
 			fetch $ntp_leapfile_fetch_opts -o $ntp_tmp_leapfile $url && break
 		done
-		ntp_ver_no_tmp=$(get_ntp_leapfile_ver $ntp_tmp_leapfile)
-		if [ "$ntp_ver_no_tmp" -gt "$ntp_ver_no_db" ]; then
+		ntp_expiry_tmp=$(get_ntp_leapfile_expiry $ntp_tmp_leapfile)
+		if [ "$ntp_expiry_tmp" -gt "$ntp_leap_expiry" ]; then
 			$verbose using $url as $ntp_db_leapfile
 			mv $ntp_tmp_leapfile $ntp_db_leapfile
 		else


More information about the svn-src-stable-9 mailing list