aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2016-05-25 01:35:02 +0000
committerCy Schubert <cy@FreeBSD.org>2016-05-25 01:35:02 +0000
commit3f9e9f234e46d35bbce460121a442cbd0e704781 (patch)
tree6ab8c9d04f41b7bd9db72405dd7d52960b244db3 /etc/rc.d
parent0e9f21dc24e4846a711fe56c898b6991f28f0f02 (diff)
downloadsrc-3f9e9f234e46d35bbce460121a442cbd0e704781.tar.gz
src-3f9e9f234e46d35bbce460121a442cbd0e704781.zip
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 MFC after: 3 days
Notes
Notes: svn path=/head/; revision=300638
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/ntpd4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd
index d729fe01ea0a..a6d0bab3dbef 100755
--- a/etc/rc.d/ntpd
+++ b/etc/rc.d/ntpd
@@ -108,8 +108,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