]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3084] update-leap mis-parses the leapfile name
authorHarlan Stenn <stenn@ntp.org>
Wed, 6 Jul 2016 08:53:32 +0000 (01:53 -0700)
committerHarlan Stenn <stenn@ntp.org>
Wed, 6 Jul 2016 08:53:32 +0000 (01:53 -0700)
bk: 577cc70c5q6UVg6FFINrybhN0OUb8g

ChangeLog
scripts/update-leap/update-leap.in

index 02780216843f43cd77adfb4d59ef7e97dbe4b729..bc5753844a854fd85b29a73501c349294ed8a6ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 ---
 
 * [Bug 2961] sntp/tests/packetProcessing.c assumes AUTOKEY.  HStenn.
+* [Bug 3084] update-leap mis-parses the leapfile name.  HStenn.
 
 ---
 (4.2.8p8) 2016/06/02 Released by Harlan Stenn <stenn@ntp.org>
index a22b50a5a2be4aa5e4bcc1459bb3b98852079943..bd7ed1805cd45878f4779194ef8e6ee982d3b14a 100755 (executable)
@@ -34,7 +34,10 @@ my $QUIET = "";
 my $VERBOSE = "";
 
 # Where to get the file
-my $LEAPSRC="ftp://time.nist.gov/pub/leap-seconds.list";
+# Choices:
+#      https://www.ietf.org/timezones/data/leap-seconds.list
+#      ftp://time.nist.gov/pub/leap-seconds.list
+my $LEAPSRC="https://www.ietf.org/timezones/data/leap-seconds.list";
 my $LEAPFILE;
 
 # How many times to try to download new file
@@ -300,7 +303,7 @@ sub verifySHA {
 open(LF, $NTPCONF) || die "Can't open <$NTPCONF>: $!\n";
 while (<LF>) {
     chomp;
-    if (/^ *leapfile\s+(\S+)/) {
+    if (/^ *leapfile\s+"(\S+)"/) {
        $LEAPFILE = $1;
     }
 }