[Git][NTPsec/ntpsec][master] SFFC<D calls must be done in order during argument processing...

Eric S. Raymond gitlab at mg.gitlab.com
Sun Jun 5 20:22:18 UTC 2016


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


Commits:
b2efeade by Eric S. Raymond at 2016-06-05T16:20:04-04:00
SFFC<D calls must be done in order during argument processing...

...in order for ntpq wuth arguments to work as expected.

- - - - -


1 changed file:

- ntpq/ntpq.c


Changes:

=====================================
ntpq/ntpq.c
=====================================
--- a/ntpq/ntpq.c
+++ b/ntpq/ntpq.c
@@ -569,6 +569,7 @@ ntpqmain(
 			break;
 		    case 'p':
 			opt_peers = true;
+			ADDCMD("peers");
 			break;
 		    case 'V':
 			printf("ntpd %s\n", Version);
@@ -600,9 +601,6 @@ ntpqmain(
 	else
 		ai_fam_templ = ai_fam_default;
 
-	if (opt_peers)
-		ADDCMD("peers");
-
 	if (opt_interactive)
 		interactive = true;
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b2efeade000a687558b29e08cb5eef4cd1c6f38d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160605/c9a20322/attachment.html>


More information about the vc mailing list