[Git][NTPsec/ntpsec][master] Restore old behavior of ntpq -pn when there's an override label.
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Jul 10 12:55:11 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
b065490c by Eric S. Raymond at 2016-07-10T08:54:53-04:00
Restore old behavior of ntpq -pn when there's an override label.
- - - - -
1 changed file:
- ntpq/ntpq-subs.c
Changes:
=====================================
ntpq/ntpq-subs.c
=====================================
--- a/ntpq/ntpq-subs.c
+++ b/ntpq/ntpq-subs.c
@@ -1791,7 +1791,7 @@ doprintpeers(
fprintf(fp, "%-*s ", (int)maxhostlen, serverlocal);
}
if (AF_UNSPEC == af || AF(&srcadr) == af) {
- if (displayname != NULL)
+ if (displayname != NULL && showhostnames)
strlcpy(clock_name, displayname, sizeof(clock_name));
else if (!have_srchost)
strlcpy(clock_name, nntohost(&srcadr),
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b065490caddfeb4fc91e8334984e940b1ef50f15
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160710/6f29f713/attachment.html>
More information about the vc
mailing list