From nobody@FreeBSD.org  Thu Aug 29 10:07:43 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 9194B7BA
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Aug 2013 10:07:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 7FABD2602
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Aug 2013 10:07:43 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7TA7gPA038641
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Aug 2013 10:07:42 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7TA7gmT038631;
	Thu, 29 Aug 2013 10:07:42 GMT
	(envelope-from nobody)
Message-Id: <201308291007.r7TA7gmT038631@oldred.freebsd.org>
Date: Thu, 29 Aug 2013 10:07:42 GMT
From: Marco Hoehle <marco.hoehle@unibas.ch>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ntpq -d flag does not work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181645
>Category:       bin
>Synopsis:       [patch] ntpq(8): ntpq -d flag does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 29 10:10:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Aug 30 03:14:15 UTC 2013
>Originator:     Marco Hoehle
>Release:        9.1-RELEASE
>Organization:
University Basel
>Environment:
FreeBSD urz-hoehle-fbsd.urz.unibas.ch 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64


>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





>How-To-Repeat:


test doc:
> man ntpq | grep "\-d"

test binary:
> ntpq -d

>Fix:

Either update the manpage or add the flag ;-)

>Release-Note:
>Audit-Trail:

From: Rodrigo OSORIO <rodrigo@bebik.net>
To: Marco Hoehle <marco.hoehle@unibas.ch>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/181645: ntpq -d flag does not work
Date: Thu, 29 Aug 2013 15:14:35 +0200

 > >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
  
>Unformatted:
