misc/138206: not enabled function, and false manual

Oliver Pinter oliver.pntr at gmail.com
Wed Aug 26 14:20:03 UTC 2009

>Number:         138206
>Category:       misc
>Synopsis:       not enabled function, and false manual
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 26 14:20:02 UTC 2009
>Originator:     Oliver Pinter
>Release:        7.2-STABLE
FreeBSD oliverp.teteny.bme.hu 7.2-STABLE FreeBSD 7.2-STABLE #8: Thu Aug 20 20:22:09 CEST 2009     root at oliverp.teteny.bme.hu:/usr/obj/usr/src/sys/stable  amd64
         -d      Specify debugging mode.  This option may occur more than once,
                 with each occurrence indicating greater detail of display.
    /etc# ntpd -d -c /etc/ntp.conf
    ntpd: illegal option -- d
    ntpd - NTP daemon program - Ver. 4.2.4p5
    USAGE:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...


after the attached patch:

 # ntpd -dddddddd
 ntpd 4.2.4p5-a Tue Aug 25 16:18:59 CEST 2009 (1)
 adding new filegen
 adding new filegen
 adding new filegen
 adding new filegen
 adding new filegen
 adding new filegen
 addto_syslog: set_process_priority: Leave priority alone: priority_done is <2>
 addto_syslog: precision = 0.698 usec
 addto_syslog: ntp_io: estimated max descriptors: 11095, initial socket boundary:
 addto_syslog: bind() fd 20, family 2, port 123, addr, in_classd=0 flags=
 0x89 fails: Address already in use
 addto_syslog: unable to bind to wildcard socket address - another proces
 s may be running - EXITIN


this output is OK
ntp[qd] -d foo

Patch attached with submission follows:

commit 18001be3bcb3f48f77d87502373f4dbc4683c1dd
Author: opv <opv at oliverp.teteny.bme.hu>
Date:   Tue Aug 25 16:15:58 2009 +0200

    fix ntpq -d options
    add -DDEBUG as the header say...

	#ifdef DEBUG
	#define VALUE_OPT_DEBUG_LEVEL    'd'
	#endif /* DEBUG */
	#ifdef DEBUG
	#endif /* DEBUG */

    after this patch, the ntpq running as the man say
    Signed-off-by : Oliver Pinter <oliverp at teteny.bme.hu>

diff --git a/usr.sbin/ntp/Makefile.inc b/usr.sbin/ntp/Makefile.inc
index f81905a..71e2a57 100644
--- a/usr.sbin/ntp/Makefile.inc
+++ b/usr.sbin/ntp/Makefile.inc
@@ -2,7 +2,7 @@
 .include <bsd.own.mk>


More information about the freebsd-bugs mailing list