]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
validate MANTAGFMT in genLocInfo
authorHarlan Stenn <stenn@ntp.org>
Thu, 23 Jun 2011 00:18:20 +0000 (20:18 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 23 Jun 2011 00:18:20 +0000 (20:18 -0400)
bk: 4e02864cANnF8_SF-1CE3SBzNQX5eg

ChangeLog
scripts/genLocInfo

index 51ca3a55d0d78ef38d03e7265c412cc92489e766..3be9e86b66d9afc44b6cf557fb2d1ded3e182308 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
 * Finish conversion to genLocInfo.
+* validate MANTAGFMT in genLocInfo.
 * [Bug 1950] Control installation of event_rpcgen.py.
 * ntp_locs.m4: handle the case where . is not in the PATH.
 * . may not be in the PATH - ntp_locs.m4 fix.
index a3d0b0ea3f19bbe68759c5fea59a16e9777055fd..a9ab450cd732e6001c1dbcc1bdbb6f7d58fe3e1e 100755 (executable)
@@ -154,7 +154,15 @@ do
     fi
 done < $LF
 IFS=$oIFS
-echo "MANTAGFMT=$TF"
+
+case "$TF" in
+ \?)
+    echo "MANTAGFMT not found!" >&2
+    RC=1
+    ;;
+ *) echo "MANTAGFMT=$TF"
+    ;;
+esac
 
 case "$RC" in
  0) echo 'GENLOCINFO=OK' ;;