[prev in list] [next in list] [prev in thread] [next in thread]
List: ntp-bugs
Subject: [ntp:bugs] [Bug 739] New: ntpd expects an argument to the '-x'
From: bugzilla () ntp ! isc ! org
Date: 2006-11-20 14:32:13
Message-ID: 20061120143213.D6C57398A3 () ntp2 ! ntp ! isc ! org
[Download RAW message or body]
http://bugs.ntp.isc.org/739
Summary: ntpd expects an argument to the '-x' command line option
Product: ntp
Version: 4.2.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: ntpd
AssignedTo: stenn@ntp.org
ReportedBy: Juergen.Salm@siemens.com
CC: bugs@ntp.isc.org
According to the documentation (and according to all older versions), the '-x'
command line option of ntpd has no arguments.
However, in ntpd-opts.c the following is specified.
366 /*
367 * Slew option description:
368 */
369 tSCC zSlewText[] =
370 "Slew up to 600 seconds";
371 tSCC zSlew_NAME[] = "SLEW";
372 tSCC zSlew_Name[] = "slew";
373 #define SLEW_FLAGS (OPTST_DISABLED \
374 | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
Hmm ... a string argument? Well this leads to the following effects
tcsh% ntpd -\?
...
-x Str slew Slew up to 600 seconds
...
tcsh% ntpd -d -x
ntpd: option `slew' requires an argument
'ntpd -x -d' doesn't go into debug mode.
Strange enough, 'ntpd -x' alone works. ;-)
Well the following modification makes the '-x' option work as expected.
diff -r ntp-dev-4.2.3p64-RC/ntpd/ntpd-opts.c ntp-dev-4.2.3p64-RC-
modified_Salm/ntpd/ntpd-opts.c
373,374c373
< #define SLEW_FLAGS (OPTST_DISABLED \
< | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
---
> #define SLEW_FLAGS (OPTST_DISABLED)
PS: I know that the actual file to change is ntpdbase-opts.def. However, when I
change this file, make ends in a
make[2]: Entering directory `/home/salm/usr/pd/ntp-dev-4.2.3p65-RC/ntpd'
cd . && autogen -L ../include ntpd-opts.def
/bin/sh: autogen: command not found
make[2]: *** [ntpd-opts.c] Error 127
;-(
Bye
Juergen
--
Juergen Salm <Juergen.Salm@siemens.com>
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bugs mailing list
bugs@lists.ntp.isc.org
https://lists.ntp.isc.org/mailman/listinfo/bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic