[Git][NTPsec/ntpsec][master] In ntpq, repair a bug in the interpretation of :config.

Eric S. Raymond gitlab at mg.gitlab.com
Tue Aug 15 13:24:55 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
06c07ece by Eric S. Raymond at 2017-08-15T09:24:20-04:00
In ntpq, repair a bug in the interpretation of :config.

- - - - -


1 changed file:

- ntpclients/ntpq


Changes:

=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -177,7 +177,7 @@ class Ntpq(cmd.Cmd):
         "Called on an input line when the command prefix is not recognized."
 
         if line.startswith(":config"):
-            line = line[1:]
+            line = "hot_" + line[1:]
         elif line.startswith("config-from-file"):
             line = line.replace("config-from-file ", "config_from_file")
 
@@ -1223,7 +1223,7 @@ function: obtain and print a list of all peers and clients showing
 usage: lopeers
 """)
 
-    def do_config(self, line):
+    def do_hot_config(self, line):
         "send a remote configuration command to ntpd"
         try:
             self.session.password()



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/06c07ece2274286bcf961d2456bfdc28b5832507

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/06c07ece2274286bcf961d2456bfdc28b5832507
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/20170815/5d68bc41/attachment.html>


More information about the vc mailing list