In the manpage for ntpq the "debug" flag is explained but it does not work. See example: [hoehle@urz-hoehle-fbsd ~]$ man ntpq | grep "\-d" -d Turn on debugging mode. [hoehle@urz-hoehle-fbsd ~]$ ntpq -d ntpq: illegal option -- d ntpq - standard NTP query program - Ver. 4.2.4p8 Fix: Either update the manpage or add the flag ;-) How-To-Repeat: test doc: > man ntpq | grep "\-d" test binary: > ntpq -d
> >Description: > In the manpage for ntpq the "debug" flag is explained but it does not work. > > See example: > > [hoehle@urz-hoehle-fbsd ~]$ man ntpq | grep "\-d" > -d Turn on debugging mode. > > [hoehle@urz-hoehle-fbsd ~]$ ntpq -d > ntpq: illegal option -- d > ntpq - standard NTP query program - Ver. 4.2.4p8 > > test doc: > > man ntpq | grep "\-d" > > test binary: > > ntpq -d > > >Fix: > > Either update the manpage or add the flag ;-) > Apparently we forgot the -DDEBUG flag in usr.sbin/ntp/ntpq/Makefile to enable the debug options. Index: Makefile =================================================================== --- Makefile (revision 253954) +++ Makefile (working copy) @@ -19,7 +19,7 @@ DPADD+= ${LIBEDIT} ${LIBTERMCAP} LDADD+= -ledit -ltermcap -CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ +CFLAGS+= -DDEBUG -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ -I${DESTDIR}/${INCLUDEDIR}/edit CLEANFILES+= .version version.c
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>