[Git][NTPsec/ntpsec][master] Restore old behavior of multiple -c options.

Eric S. Raymond gitlab at mg.gitlab.com
Sun Jun 5 18:24:43 UTC 2016


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


Commits:
210837e8 by Eric S. Raymond at 2016-06-05T01:15:11-04:00
Restore old behavior of multiple -c options.

- - - - -


1 changed file:

- ntpq/ntpq.c


Changes:

=====================================
ntpq/ntpq.c
=====================================
--- a/ntpq/ntpq.c
+++ b/ntpq/ntpq.c
@@ -542,6 +542,7 @@ ntpqmain(
 			break;
 		    case 'c':
 			opt_command = ntp_optarg;
+			ADDCMD(opt_command);
 			break;
 		    case 'd':
 #ifdef DEBUG
@@ -599,9 +600,6 @@ ntpqmain(
 	else
 		ai_fam_templ = ai_fam_default;
 
-	if (opt_command != NULL)
-		ADDCMD(opt_command);
-
 	if (opt_peers)
 		ADDCMD("peers");
 



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


More information about the vc mailing list