[Git][NTPsec/ntpsec][master] ntpleapfetch: do not continue with no leapfile specified.

Gary E. Miller gitlab at mg.gitlab.com
Tue Oct 2 18:11:22 UTC 2018


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
03adfbe2 by Gary E. Miller at 2018-10-02T18:09:46Z
ntpleapfetch: do not continue with no leapfile specified.

- - - - -


1 changed file:

- ntpclients/ntpleapfetch


Changes:

=====================================
ntpclients/ntpleapfetch
=====================================
@@ -358,6 +358,10 @@ if [ -n "$1" ]; then
     fi
     LEAPFILE="$1"
 fi
+if [ -z "$LEAPFILE" ]; then
+    log "error" "No leapfile in ntp.conf or on the command line."
+    exit 1
+fi
 
 # Verify the current file
 # If it is missing, doesn't validate or expired



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/03adfbe2dea9161b4f4b019a62d90b83f967c695

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/03adfbe2dea9161b4f4b019a62d90b83f967c695
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20181002/7161b9d8/attachment.html>


More information about the vc mailing list