Author: cy
Date: Wed Dec  6 00:00:37 2017
New Revision: 326604
URL: https://svnweb.freebsd.org/changeset/base/326604

Log:
  MFC r326343:
  
  Fix fetching ntp leapfile after 325256
  
  Submitted by: Ronald Klop <ronald-li...@klop.ws>
  Original commit by:    asomers
  MFC PR:               224126

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

Changes in other areas also in this revision:
Modified:
  stable/11/etc/rc.d/ntpd
Directory Properties:
  stable/11/   (props changed)

Modified: stable/10/etc/rc.d/ntpd
==============================================================================
--- stable/10/etc/rc.d/ntpd     Tue Dec  5 23:06:15 2017        (r326603)
+++ stable/10/etc/rc.d/ntpd     Wed Dec  6 00:00:37 2017        (r326604)
@@ -18,6 +18,8 @@ extra_commands="fetch"
 fetch_cmd="ntpd_fetch_leapfile"
 start_precmd="ntpd_precmd"
 
+ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list"
+
 load_rc_config $name
 
 ntpd_precmd()
@@ -90,15 +92,13 @@ ntpd_init_leapfile() {
 }
 
 ntpd_fetch_leapfile() {
-       local ntp_tmp_leapfile rc verbose
+       local rc verbose
        
        if checkyesno ntp_leapfile_fetch_verbose; then
                verbose=echo
        else
                verbose=:
        fi
-
-       ntp_tmp_leapfile="/var/run/ntpd.leap-seconds.list"
 
        ntp_ver_no_src=$(get_ntp_leapfile_ver $ntp_src_leapfile)
        ntp_expiry_src=$(get_ntp_leapfile_expiry $ntp_src_leapfile)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to