From: Dave Hart Date: Tue, 17 Nov 2009 19:43:44 +0000 (+0000) Subject: [Bug 1142] nodebug builds shed no light on -d, -D option failure. X-Git-Tag: NTP_4_2_5P247_RC~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a32022724dbb3208d6f08d4054ee95df51784688;p=thirdparty%2Fntp.git [Bug 1142] nodebug builds shed no light on -d, -D option failure. [Bug 1179] point out the problem with -i/--jaildir and -u/--user when they are disabled by configure. -4/-6 are not equivalent in the libopts sense bk: 4b02fcf0D1vpqTE3yp4DRL0Ro4dq4A --- diff --git a/ChangeLog b/ChangeLog index f506c3acd..c6a7f7432 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +* [Bug 1142] nodebug builds shed no light on -d, -D option failure. +* [Bug 1179] point out the problem with -i/--jaildir and -u/--user when + they are disabled by configure. * [Bug 1343] sntp doesn't link on Solaris 7, needs -lresolv. (4.2.5p246-RC) 2009/11/17 Released by Harlan Stenn * Upgrade to autogen-5.10 diff --git a/ntpd/cmd_args.c b/ntpd/cmd_args.c index 246209b8d..1047b8b7f 100644 --- a/ntpd/cmd_args.c +++ b/ntpd/cmd_args.c @@ -41,22 +41,14 @@ getCmdOpts( */ errflg = 0; - switch (WHICH_IDX_IPV4) { - case INDEX_OPT_IPV4: + if (HAVE_OPT( IPV4 )) default_ai_family = AF_INET; - break; - case INDEX_OPT_IPV6: + else if (HAVE_OPT( IPV6 )) default_ai_family = AF_INET6; - break; - default: - /* ai_fam_templ = ai_fam_default; */ - break; - } if (HAVE_OPT( AUTHREQ )) proto_config(PROTO_AUTHENTICATE, 1, 0., NULL); - - if (HAVE_OPT( AUTHNOREQ )) + else if (HAVE_OPT( AUTHNOREQ )) proto_config(PROTO_AUTHENTICATE, 0, 0., NULL); if (HAVE_OPT( BCASTSYNC )) @@ -75,24 +67,12 @@ getCmdOpts( if (HAVE_OPT( PANICGATE )) allow_panic = TRUE; - if (HAVE_OPT( JAILDIR )) { #ifdef HAVE_DROPROOT - droproot = 1; - chrootdir = OPT_ARG( JAILDIR ); -#else - fprintf(stderr, - "command line -i option (jaildir) is not supported by this binary" -# ifndef SYS_WINNT - ",\n" "can not drop root privileges. See configure options\n" - "--enable-clockctl and --enable-linuxcaps.\n"); -# else - ".\n"); -# endif - msyslog(LOG_ERR, - "command line -i option (jaildir) is not supported by this binary."); - errflg++; -#endif + if (HAVE_OPT( JAILDIR )) { + droproot = 1; + chrootdir = OPT_ARG( JAILDIR ); } +#endif if (HAVE_OPT( KEYFILE )) getauthkeys(OPT_ARG( KEYFILE )); @@ -139,27 +119,15 @@ getCmdOpts( } while (--ct > 0); } - if (HAVE_OPT( USER )) { #ifdef HAVE_DROPROOT + if (HAVE_OPT( USER )) { droproot = 1; user = estrdup(OPT_ARG( USER )); group = rindex(user, ':'); if (group) *group++ = '\0'; /* get rid of the ':' */ -#else - fprintf(stderr, - "command line -u/--user option is not supported by this binary" -# ifndef SYS_WINNT - ",\n" "can not drop root privileges. See configure options\n" - "--enable-clockctl and --enable-linuxcaps.\n"); -# else - ".\n"); -# endif - msyslog(LOG_ERR, - "command line -u/--user option is not supported by this binary."); - errflg++; -#endif } +#endif if (HAVE_OPT( VAR )) { int ct = STACKCT_OPT( VAR ); diff --git a/ntpd/ntpd-opts.c b/ntpd/ntpd-opts.c index 5d3d55338..91e3d705b 100644 --- a/ntpd/ntpd-opts.c +++ b/ntpd/ntpd-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpd-opts.c) * - * It has been AutoGen-ed November 17, 2009 at 07:26:39 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:35:44 PM by AutoGen 5.10 * From the definitions ntpd-opts.def * and the template file options * @@ -67,21 +67,29 @@ extern tUsageProc optionUsage; #endif /* - * Ipv4 option description: + * Ipv4 option description with + * "Must also have options" and "Incompatible options": */ tSCC zIpv4Text[] = "Force IPv4 DNS name resolution"; tSCC zIpv4_NAME[] = "IPV4"; tSCC zIpv4_Name[] = "ipv4"; +static const int + aIpv4CantList[] = { + INDEX_OPT_IPV6, NO_EQUIVALENT }; #define IPV4_FLAGS (OPTST_DISABLED) /* - * Ipv6 option description: + * Ipv6 option description with + * "Must also have options" and "Incompatible options": */ tSCC zIpv6Text[] = "Force IPv6 DNS name resolution"; tSCC zIpv6_NAME[] = "IPV6"; tSCC zIpv6_Name[] = "ipv6"; +static const int + aIpv6CantList[] = { + INDEX_OPT_IPV4, NO_EQUIVALENT }; #define IPV6_FLAGS (OPTST_DISABLED) /* @@ -142,8 +150,8 @@ tSCC zDebug_Level_Name[] = "debug-level"; #else /* disable Debug_Level */ #define DEBUG_LEVEL_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define zDebug_Level_NAME NULL -#define zDebug_LevelText NULL -#define zDebug_Level_Name NULL +tSCC zDebug_Level_Name[] = "debug-level"; +tSCC zDebug_LevelText[] = "this package was built using 'configure --disable--debug'"; #endif /* DEBUG */ /* @@ -160,8 +168,8 @@ tSCC zSet_Debug_Level_Name[] = "set-debug-level"; #else /* disable Set_Debug_Level */ #define SET_DEBUG_LEVEL_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define zSet_Debug_Level_NAME NULL -#define zSet_Debug_LevelText NULL -#define zSet_Debug_Level_Name NULL +tSCC zSet_Debug_Level_Name[] = "set-debug-level"; +tSCC zSet_Debug_LevelText[] = "this package was built using 'configure --disable--debug'"; #endif /* DEBUG */ /* @@ -197,8 +205,8 @@ tSCC zJaildir_Name[] = "jaildir"; #else /* disable Jaildir */ #define JAILDIR_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define zJaildir_NAME NULL -#define zJaildirText NULL -#define zJaildir_Name NULL +tSCC zJaildir_Name[] = "jaildir"; +tSCC zJaildirText[] = "built without --enable-clockctl or --enable-linuxcaps"; #endif /* HAVE_DROPROOT */ /* @@ -366,8 +374,8 @@ tSCC zUser_Name[] = "user"; #else /* disable User */ #define USER_FLAGS (OPTST_OMITTED | OPTST_NO_INIT) #define zUser_NAME NULL -#define zUserText NULL -#define zUser_Name NULL +tSCC zUser_Name[] = "user"; +tSCC zUserText[] = "built without --enable-clockctl or --enable-linuxcaps"; #endif /* HAVE_DROPROOT */ /* @@ -520,25 +528,25 @@ static tOptProc */ static tOptDesc optDesc[ OPTION_CT ] = { { /* entry idx, value */ 0, VALUE_OPT_IPV4, - /* equiv idx, value */ NO_EQUIVALENT, 0, + /* equiv idx, value */ 0, VALUE_OPT_IPV4, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ IPV4_FLAGS, 0, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, - /* must/cannot opts */ NULL, NULL, + /* must/cannot opts */ NULL, aIpv4CantList, /* option proc */ NULL, /* desc, NAME, name */ zIpv4Text, zIpv4_NAME, zIpv4_Name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 1, VALUE_OPT_IPV6, - /* equiv idx, value */ NOLIMIT, NOLIMIT, - /* equivalenced to */ INDEX_OPT_IPV4, + /* equiv idx, value */ 1, VALUE_OPT_IPV6, + /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ IPV6_FLAGS, 0, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, - /* must/cannot opts */ NULL, NULL, + /* must/cannot opts */ NULL, aIpv6CantList, /* option proc */ NULL, /* desc, NAME, name */ zIpv6Text, zIpv6_NAME, zIpv6_Name, /* disablement strs */ NULL, NULL }, @@ -957,7 +965,7 @@ tSCC zBugsAddr[] = "http://bugs.ntp.org, bugs@ntp.org"; #define zExplain NULL tSCC zDetail[] = "\n\n"; tSCC zFullVersion[] = NTPD_FULL_VERSION; -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 495 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 495 */ #if defined(ENABLE_NLS) # define OPTPROC_BASE OPTPROC_TRANSLATE @@ -1024,12 +1032,12 @@ doUsageOpt( static void doOptSet_Debug_Level(tOptions* pOptions, tOptDesc* pOptDesc) { - /* extracted from ntpdbase-opts.def, line 98 */ + /* extracted from ntpdbase-opts.def, line 100 */ DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg ); } #endif /* defined DEBUG */ #endif /* defined(TEST_NTPD_OPTS) */ -/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 109 */ +/* extracted from /usr/local/share/autogen/optmain.tpl near line 109 */ #if defined(TEST_NTPD_OPTS) /* TEST MAIN PROCEDURE: */ @@ -1044,7 +1052,7 @@ main(int argc, char** argv) return res; } #endif /* defined TEST_NTPD_OPTS */ -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 627 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 627 */ #if ENABLE_NLS #include diff --git a/ntpd/ntpd-opts.h b/ntpd/ntpd-opts.h index 904e62196..53cfad6cb 100644 --- a/ntpd/ntpd-opts.h +++ b/ntpd/ntpd-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpd-opts.h) * - * It has been AutoGen-ed November 17, 2009 at 07:26:38 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:35:44 PM by AutoGen 5.10 * From the definitions ntpd-opts.def * and the template file options * @@ -286,9 +286,6 @@ typedef enum { * Interface defines for specific options. */ #define VALUE_OPT_IPV4 '4' - -#define WHICH_OPT_IPV4 (DESC(IPV4).optActualValue) -#define WHICH_IDX_IPV4 (DESC(IPV4).optActualIndex) #define VALUE_OPT_IPV6 '6' #define VALUE_OPT_AUTHREQ 'a' #define VALUE_OPT_AUTHNOREQ 'A' @@ -337,7 +334,7 @@ typedef enum { ntpdOptions.pzCurOpt = NULL ) #define START_OPT RESTART_OPT(1) #define USAGE(c) (*ntpdOptions.pUsageProc)( &ntpdOptions, c ) -/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 409 */ +/* extracted from /usr/local/share/autogen/opthead.tpl near line 409 */ /* * * * * * * diff --git a/ntpd/ntpd-opts.texi b/ntpd/ntpd-opts.texi index a19eb1cb1..a954aff4b 100644 --- a/ntpd/ntpd-opts.texi +++ b/ntpd/ntpd-opts.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (ntpd-opts.texi) # -# It has been AutoGen-ed November 17, 2009 at 07:26:41 AM by AutoGen 5.10 +# It has been AutoGen-ed November 17, 2009 at 05:35:45 PM by AutoGen 5.10 # From the definitions ntpd-opts.def # and the template file aginfo.tpl @end ignore @@ -63,7 +63,7 @@ This is the automatically generated usage text for ntpd: @exampleindent 0 @example -ntpd - NTP daemon program - Ver. 4.2.5p242-RC +ntpd - NTP daemon program - Ver. 4.2.5p238-RC USAGE: ntpd [ - [] | --[@{=| @}] ]... Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution @@ -130,7 +130,8 @@ This is the ``force ipv4 dns name resolution'' option. This option has some usage constraints. It: @itemize @bullet @item -is a member of the ipv4 class of options. +must not appear in combination with any of the following options: +ipv6. @end itemize Force DNS resolution of following host names on the command line @@ -145,7 +146,8 @@ This is the ``force ipv6 dns name resolution'' option. This option has some usage constraints. It: @itemize @bullet @item -is a member of the ipv4 class of options. +must not appear in combination with any of the following options: +ipv4. @end itemize Force DNS resolution of following host names on the command line @@ -288,10 +290,17 @@ must be compiled in by defining @code{HAVE_DROPROOT} during the compilation. Chroot the server to the directory jaildir . -This option also implies that the server attempts to drop root privileges at startup (otherwise, chroot gives very little additional security), and it is only available if the OS supports to run the server without full root privileges. +This option also implies that the server attempts to drop root privileges at startup. You may need to also specify a -u option. +This option is only available if the OS supports adjusting the clock +without full root privileges. +This option is supported under NetBSD (configure with +--enable-clockctl +) and Linux (configure with +--enable-linuxcaps +). @node ntpd interface @subsection interface option (-I) @@ -475,8 +484,9 @@ must be compiled in by defining @code{HAVE_DROPROOT} during the compilation. @end itemize Specify a user, and optionally a group, to switch to. -This option is only available if the OS supports to run the server without full root privileges. -Currently, this option is supported under NetBSD (configure with +This option is only available if the OS supports adjusting the clock +without full root privileges. +This option is supported under NetBSD (configure with --enable-clockctl ) and Linux (configure with --enable-linuxcaps diff --git a/ntpd/ntpd.1 b/ntpd/ntpd.1 index 98cd70a95..d8a0da7f6 100644 --- a/ntpd/ntpd.1 +++ b/ntpd/ntpd.1 @@ -1,7 +1,7 @@ .TH NTPD 1 2009-11-17 "( 4.2.5p246-RC)" "Programmer's Manual" .\" EDIT THIS FILE WITH CAUTION (ntpd.1) .\" -.\" It has been AutoGen-ed November 17, 2009 at 07:26:40 AM by AutoGen 5.10 +.\" It has been AutoGen-ed November 17, 2009 at 05:35:44 PM by AutoGen 5.10 .\" From the definitions ntpd-opts.def .\" and the template file agman1.tpl .\" @@ -20,14 +20,16 @@ This manual page briefly documents the \fBntpd\fP command. .TP .BR \-4 ", " \--ipv4 Force IPv4 DNS name resolution. -This option is a member of the ipv4 class of options. +This option must not appear in combination with any of the following options: +ipv6. .sp Force DNS resolution of following host names on the command line to the IPv4 namespace. .TP .BR \-6 ", " \--ipv6 Force IPv6 DNS name resolution. -This option is a member of the ipv4 class of options. +This option must not appear in combination with any of the following options: +ipv4. .sp Force DNS resolution of following host names on the command line to the IPv6 namespace. @@ -110,10 +112,17 @@ Jail directory. Chroot the server to the directory jaildir . -This option also implies that the server attempts to drop root privileges at startup (otherwise, chroot gives very little additional security), and it is only available if the OS supports to run the server without full root privileges. +This option also implies that the server attempts to drop root privileges at startup. You may need to also specify a -u option. +This option is only available if the OS supports adjusting the clock +without full root privileges. +This option is supported under NetBSD (configure with +--enable-clockctl +) and Linux (configure with +--enable-linuxcaps +). .TP .BR \-I " \fIiface\fP, " \--interface "=" \fIiface\fP Listen on an interface name or address. @@ -235,8 +244,9 @@ Add a key number to the trusted key list. Run as userid (or userid:groupid). .sp Specify a user, and optionally a group, to switch to. -This option is only available if the OS supports to run the server without full root privileges. -Currently, this option is supported under NetBSD (configure with +This option is only available if the OS supports adjusting the clock +without full root privileges. +This option is supported under NetBSD (configure with --enable-clockctl ) and Linux (configure with --enable-linuxcaps diff --git a/ntpd/ntpdbase-opts.def b/ntpd/ntpdbase-opts.def index 21425556f..586a33e05 100644 --- a/ntpd/ntpdbase-opts.def +++ b/ntpd/ntpdbase-opts.def @@ -13,7 +13,7 @@ test-main; flag = { name = ipv4; value = 4; - equivalence = ipv4; + flags-cant = ipv6; descrip = "Force IPv4 DNS name resolution"; doc = <<- _EndOfDoc_ Force DNS resolution of following host names on the command line @@ -24,7 +24,7 @@ flag = { flag = { name = ipv6; value = 6; - equivalence = ipv4; + flags-cant = ipv4; descrip = "Force IPv6 DNS name resolution"; doc = <<- _EndOfDoc_ Force DNS resolution of following host names on the command line @@ -83,6 +83,7 @@ flag = { ifdef = DEBUG; nopreset; descrip = "Increase output debug message level"; + omitted-usage = "this package was built using 'configure --disable--debug'"; doc = <<- _EndOfDoc_ Increase the debugging message output level. _EndOfDoc_; @@ -91,10 +92,11 @@ flag = { flag = { name = set-debug-level; value = D; + arg-type = string; max = NOLIMIT; ifdef = DEBUG; descrip = "Set the output debug message level"; - arg-type = string; + omitted-usage = "this package was built using 'configure --disable--debug'"; flag-code = 'DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg );'; doc = <<- _EndOfDoc_ Set the output debugging level. Can be supplied multiple times, @@ -146,14 +148,22 @@ flag = { value = i; arg-type = string; descrip = "Jail directory"; + omitted-usage = "built without --enable-clockctl or --enable-linuxcaps"; doc = <<- _EndOfDoc_ Chroot the server to the directory jaildir . - This option also implies that the server attempts to drop root privileges at startup (otherwise, chroot gives very little additional security), and it is only available if the OS supports to run the server without full root privileges. + This option also implies that the server attempts to drop root privileges at startup. You may need to also specify a -u option. + This option is only available if the OS supports adjusting the clock + without full root privileges. + This option is supported under NetBSD (configure with + --enable-clockctl + ) and Linux (configure with + --enable-linuxcaps + ). _EndOfDoc_; }; @@ -347,10 +357,12 @@ flag = { value = u; arg-type = string; descrip = "Run as userid (or userid:groupid)"; + omitted-usage = "built without --enable-clockctl or --enable-linuxcaps"; doc = <<- _EndOfDoc_ Specify a user, and optionally a group, to switch to. - This option is only available if the OS supports to run the server without full root privileges. - Currently, this option is supported under NetBSD (configure with + This option is only available if the OS supports adjusting the clock + without full root privileges. + This option is supported under NetBSD (configure with --enable-clockctl ) and Linux (configure with --enable-linuxcaps diff --git a/ntpdc/ntpdc-opts.c b/ntpdc/ntpdc-opts.c index 36b7a901c..060c7c74b 100644 --- a/ntpdc/ntpdc-opts.c +++ b/ntpdc/ntpdc-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpdc-opts.c) * - * It has been AutoGen-ed November 17, 2009 at 07:27:38 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 07:34:34 PM by AutoGen 5.10 * From the definitions ntpdc-opts.def * and the template file options * @@ -67,21 +67,29 @@ extern tUsageProc optionUsage; #endif /* - * Ipv4 option description: + * Ipv4 option description with + * "Must also have options" and "Incompatible options": */ tSCC zIpv4Text[] = "Force IPv4 DNS name resolution"; tSCC zIpv4_NAME[] = "IPV4"; tSCC zIpv4_Name[] = "ipv4"; +static const int + aIpv4CantList[] = { + INDEX_OPT_IPV6, NO_EQUIVALENT }; #define IPV4_FLAGS (OPTST_DISABLED) /* - * Ipv6 option description: + * Ipv6 option description with + * "Must also have options" and "Incompatible options": */ tSCC zIpv6Text[] = "Force IPv6 DNS name resolution"; tSCC zIpv6_NAME[] = "IPV6"; tSCC zIpv6_Name[] = "ipv6"; +static const int + aIpv6CantList[] = { + INDEX_OPT_IPV4, NO_EQUIVALENT }; #define IPV6_FLAGS (OPTST_DISABLED) /* @@ -254,25 +262,25 @@ static tOptProc */ static tOptDesc optDesc[ OPTION_CT ] = { { /* entry idx, value */ 0, VALUE_OPT_IPV4, - /* equiv idx, value */ NO_EQUIVALENT, 0, + /* equiv idx, value */ 0, VALUE_OPT_IPV4, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ IPV4_FLAGS, 0, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, - /* must/cannot opts */ NULL, NULL, + /* must/cannot opts */ NULL, aIpv4CantList, /* option proc */ NULL, /* desc, NAME, name */ zIpv4Text, zIpv4_NAME, zIpv4_Name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 1, VALUE_OPT_IPV6, - /* equiv idx, value */ NOLIMIT, NOLIMIT, - /* equivalenced to */ INDEX_OPT_IPV4, + /* equiv idx, value */ 1, VALUE_OPT_IPV6, + /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ IPV6_FLAGS, 0, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, - /* must/cannot opts */ NULL, NULL, + /* must/cannot opts */ NULL, aIpv6CantList, /* option proc */ NULL, /* desc, NAME, name */ zIpv6Text, zIpv6_NAME, zIpv6_Name, /* disablement strs */ NULL, NULL }, @@ -472,7 +480,7 @@ configuration options which can be specified at startup using\n\ ntpd's configuration file may also be specified at run time using\n\ [= prog-name =] .\n"; tSCC zFullVersion[] = NTPDC_FULL_VERSION; -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 495 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 495 */ #if defined(ENABLE_NLS) # define OPTPROC_BASE OPTPROC_TRANSLATE @@ -541,7 +549,7 @@ doOptSet_Debug_Level(tOptions* pOptions, tOptDesc* pOptDesc) DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg ); } #endif /* defined(TEST_NTPDC_OPTS) */ -/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 109 */ +/* extracted from /usr/local/share/autogen/optmain.tpl near line 109 */ #if defined(TEST_NTPDC_OPTS) /* TEST MAIN PROCEDURE: */ @@ -556,7 +564,7 @@ main(int argc, char** argv) return res; } #endif /* defined TEST_NTPDC_OPTS */ -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 627 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 627 */ #if ENABLE_NLS #include diff --git a/ntpdc/ntpdc-opts.def b/ntpdc/ntpdc-opts.def index 0b5aefee9..a42eb67c4 100644 --- a/ntpdc/ntpdc-opts.def +++ b/ntpdc/ntpdc-opts.def @@ -15,7 +15,7 @@ test-main; flag = { name = ipv4; value = 4; - equivalence = ipv4; + flags-cant = ipv6; descrip = "Force IPv4 DNS name resolution"; doc = <<- _EndOfDoc_ Force DNS resolution of following host names on the command line @@ -26,7 +26,7 @@ flag = { flag = { name = ipv6; value = 6; - equivalence = ipv4; + flags-cant = ipv4; descrip = "Force IPv6 DNS name resolution"; doc = <<- _EndOfDoc_ Force DNS resolution of following host names on the command line diff --git a/ntpdc/ntpdc-opts.h b/ntpdc/ntpdc-opts.h index 7509296a2..c440a4ef0 100644 --- a/ntpdc/ntpdc-opts.h +++ b/ntpdc/ntpdc-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpdc-opts.h) * - * It has been AutoGen-ed November 17, 2009 at 07:27:38 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 07:34:33 PM by AutoGen 5.10 * From the definitions ntpdc-opts.def * and the template file options * @@ -156,9 +156,6 @@ typedef enum { * Interface defines for specific options. */ #define VALUE_OPT_IPV4 '4' - -#define WHICH_OPT_IPV4 (DESC(IPV4).optActualValue) -#define WHICH_IDX_IPV4 (DESC(IPV4).optActualIndex) #define VALUE_OPT_IPV6 '6' #define VALUE_OPT_COMMAND 'c' #define VALUE_OPT_LISTPEERS 'l' @@ -187,7 +184,7 @@ typedef enum { ntpdcOptions.pzCurOpt = NULL ) #define START_OPT RESTART_OPT(1) #define USAGE(c) (*ntpdcOptions.pUsageProc)( &ntpdcOptions, c ) -/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 409 */ +/* extracted from /usr/local/share/autogen/opthead.tpl near line 409 */ /* * * * * * * diff --git a/ntpdc/ntpdc-opts.texi b/ntpdc/ntpdc-opts.texi index 94b028666..c6f50ed7b 100644 --- a/ntpdc/ntpdc-opts.texi +++ b/ntpdc/ntpdc-opts.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (ntpdc-opts.texi) # -# It has been AutoGen-ed November 17, 2009 at 07:27:40 AM by AutoGen 5.10 +# It has been AutoGen-ed November 17, 2009 at 07:34:34 PM by AutoGen 5.10 # From the definitions ntpdc-opts.def # and the template file aginfo.tpl @end ignore @@ -58,7 +58,7 @@ This is the automatically generated usage text for ntpdc: @exampleindent 0 @example -ntpdc - vendor-specific NTP query program - Ver. 4.2.5p242-RC +ntpdc - vendor-specific NTP query program - Ver. 4.2.5p238-RC USAGE: ntpdc [ - [] | --[@{=| @}] ]... [ host ...] Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution @@ -98,8 +98,8 @@ Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. The following option preset mechanisms are supported: - - reading file /users/stenn/.ntprc - - reading file /deacon/backroom/snaps/ntp-dev/ntpdc/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/ntp-dev-1142-79-1343/ntpdc/.ntprc - examining environment variables named NTPDC_* The @@ -132,7 +132,8 @@ This is the ``force ipv4 dns name resolution'' option. This option has some usage constraints. It: @itemize @bullet @item -is a member of the ipv4 class of options. +must not appear in combination with any of the following options: +ipv6. @end itemize Force DNS resolution of following host names on the command line @@ -147,7 +148,8 @@ This is the ``force ipv6 dns name resolution'' option. This option has some usage constraints. It: @itemize @bullet @item -is a member of the ipv4 class of options. +must not appear in combination with any of the following options: +ipv4. @end itemize Force DNS resolution of following host names on the command line diff --git a/ntpdc/ntpdc.1 b/ntpdc/ntpdc.1 index cc27bc8b1..f48132357 100644 --- a/ntpdc/ntpdc.1 +++ b/ntpdc/ntpdc.1 @@ -1,7 +1,7 @@ .TH NTPDC 1 2009-11-17 "( 4.2.5p246-RC)" "Programmer's Manual" .\" EDIT THIS FILE WITH CAUTION (ntpdc.1) .\" -.\" It has been AutoGen-ed November 17, 2009 at 07:27:39 AM by AutoGen 5.10 +.\" It has been AutoGen-ed November 17, 2009 at 07:34:34 PM by AutoGen 5.10 .\" From the definitions ntpdc-opts.def .\" and the template file agman1.tpl .\" @@ -38,14 +38,16 @@ ntpd's configuration file may also be specified at run time using .TP .BR \-4 ", " \--ipv4 Force IPv4 DNS name resolution. -This option is a member of the ipv4 class of options. +This option must not appear in combination with any of the following options: +ipv6. .sp Force DNS resolution of following host names on the command line to the IPv4 namespace. .TP .BR \-6 ", " \--ipv6 Force IPv6 DNS name resolution. -This option is a member of the ipv4 class of options. +This option must not appear in combination with any of the following options: +ipv4. .sp Force DNS resolution of following host names on the command line to the IPv6 namespace. diff --git a/ntpdc/ntpdc.c b/ntpdc/ntpdc.c index 1c722d186..4bfb25ff2 100644 --- a/ntpdc/ntpdc.c +++ b/ntpdc/ntpdc.c @@ -307,17 +307,12 @@ ntpdcmain( argv += optct; } - switch (WHICH_IDX_IPV4) { - case INDEX_OPT_IPV4: + if (HAVE_OPT(IPV4)) ai_fam_templ = AF_INET; - break; - case INDEX_OPT_IPV6: + else if (HAVE_OPT(IPV6)) ai_fam_templ = AF_INET6; - break; - default: + else ai_fam_templ = ai_fam_default; - break; - } if (HAVE_OPT(COMMAND)) { int cmdct = STACKCT_OPT( COMMAND ); diff --git a/ntpq/ntpq-opts.c b/ntpq/ntpq-opts.c index a21ab62b2..05ead6d70 100644 --- a/ntpq/ntpq-opts.c +++ b/ntpq/ntpq-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpq-opts.c) * - * It has been AutoGen-ed November 17, 2009 at 07:28:04 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:37:44 PM by AutoGen 5.10 * From the definitions ntpq-opts.def * and the template file options * @@ -447,7 +447,7 @@ information about current state and/or changes in that state.\n\ The same formats are used in NTPv4, although some of the\n\ variables have changed and new ones added.\n"; tSCC zFullVersion[] = NTPQ_FULL_VERSION; -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 495 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 495 */ #if defined(ENABLE_NLS) # define OPTPROC_BASE OPTPROC_TRANSLATE @@ -516,7 +516,7 @@ doOptSet_Debug_Level(tOptions* pOptions, tOptDesc* pOptDesc) DESC(DEBUG_LEVEL).optOccCt = atoi( pOptDesc->pzLastArg ); } #endif /* defined(TEST_NTPQ_OPTS) */ -/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 109 */ +/* extracted from /usr/local/share/autogen/optmain.tpl near line 109 */ #if defined(TEST_NTPQ_OPTS) /* TEST MAIN PROCEDURE: */ @@ -531,7 +531,7 @@ main(int argc, char** argv) return res; } #endif /* defined TEST_NTPQ_OPTS */ -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 627 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 627 */ #if ENABLE_NLS #include diff --git a/ntpq/ntpq-opts.h b/ntpq/ntpq-opts.h index 5bf78da71..d7ea4db36 100644 --- a/ntpq/ntpq-opts.h +++ b/ntpq/ntpq-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpq-opts.h) * - * It has been AutoGen-ed November 17, 2009 at 07:28:03 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:37:43 PM by AutoGen 5.10 * From the definitions ntpq-opts.def * and the template file options * @@ -177,7 +177,7 @@ typedef enum { ntpqOptions.pzCurOpt = NULL ) #define START_OPT RESTART_OPT(1) #define USAGE(c) (*ntpqOptions.pUsageProc)( &ntpqOptions, c ) -/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 409 */ +/* extracted from /usr/local/share/autogen/opthead.tpl near line 409 */ /* * * * * * * diff --git a/ntpq/ntpq-opts.texi b/ntpq/ntpq-opts.texi index 9679cd91b..f6510eae6 100644 --- a/ntpq/ntpq-opts.texi +++ b/ntpq/ntpq-opts.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (ntpq-opts.texi) # -# It has been AutoGen-ed November 17, 2009 at 07:28:05 AM by AutoGen 5.10 +# It has been AutoGen-ed November 17, 2009 at 05:37:44 PM by AutoGen 5.10 # From the definitions ntpq-opts.def # and the template file aginfo.tpl @end ignore @@ -47,7 +47,7 @@ This is the automatically generated usage text for ntpq: @exampleindent 0 @example -ntpq - standard NTP query program - Ver. 4.2.5p242-RC +ntpq - standard NTP query program - Ver. 4.2.5p238-RC USAGE: ntpq [ - [] | --[@{=| @}] ]... [ host ...] Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution @@ -83,8 +83,8 @@ Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. The following option preset mechanisms are supported: - - reading file /users/stenn/.ntprc - - reading file /deacon/backroom/snaps/ntp-dev/ntpq/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/ntp-dev-1142/ntpq/.ntprc - examining environment variables named NTPQ_* The diff --git a/ntpq/ntpq.1 b/ntpq/ntpq.1 index 9e291baa0..287a837c0 100644 --- a/ntpq/ntpq.1 +++ b/ntpq/ntpq.1 @@ -1,7 +1,7 @@ .TH NTPQ 1 2009-11-17 "( 4.2.5p246-RC)" "Programmer's Manual" .\" EDIT THIS FILE WITH CAUTION (ntpq.1) .\" -.\" It has been AutoGen-ed November 17, 2009 at 07:28:05 AM by AutoGen 5.10 +.\" It has been AutoGen-ed November 17, 2009 at 05:37:44 PM by AutoGen 5.10 .\" From the definitions ntpq-opts.def .\" and the template file agman1.tpl .\" diff --git a/ntpq/ntpq.c b/ntpq/ntpq.c index 33b1c9204..d1ebc414e 100644 --- a/ntpq/ntpq.c +++ b/ntpq/ntpq.c @@ -794,7 +794,8 @@ sendpkt( size_t xdatalen ) { - DPRINTF(3, ("Sending %u octets\n", xdatalen)); + if (debug >= 3) + printf("Sending %u octets\n", xdatalen); if (send(sockfd, xdata, (size_t)xdatalen, 0) == -1) { warning("write to %s failed", currenthost, ""); diff --git a/ntpsnmpd/ntpsnmpd-opts.c b/ntpsnmpd/ntpsnmpd-opts.c index 784f14495..2ffc024e1 100644 --- a/ntpsnmpd/ntpsnmpd-opts.c +++ b/ntpsnmpd/ntpsnmpd-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.c) * - * It has been AutoGen-ed November 17, 2009 at 07:28:27 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:37:58 PM by AutoGen 5.10 * From the definitions ntpsnmpd-opts.def * and the template file options * @@ -245,7 +245,7 @@ tSCC zBugsAddr[] = "http://bugs.ntp.org, bugs@ntp.org"; #define zExplain NULL #define zDetail NULL tSCC zFullVersion[] = NTPSNMPD_FULL_VERSION; -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 495 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 495 */ #if defined(ENABLE_NLS) # define OPTPROC_BASE OPTPROC_TRANSLATE @@ -301,7 +301,7 @@ doUsageOpt( (void)pOptions; USAGE( EXIT_SUCCESS ); } -/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 109 */ +/* extracted from /usr/local/share/autogen/optmain.tpl near line 109 */ #if defined(TEST_NTPSNMPD_OPTS) /* TEST MAIN PROCEDURE: */ @@ -316,7 +316,7 @@ main(int argc, char** argv) return res; } #endif /* defined TEST_NTPSNMPD_OPTS */ -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 627 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 627 */ #if ENABLE_NLS #include diff --git a/ntpsnmpd/ntpsnmpd-opts.h b/ntpsnmpd/ntpsnmpd-opts.h index c22aac1b0..c7e7bd34e 100644 --- a/ntpsnmpd/ntpsnmpd-opts.h +++ b/ntpsnmpd/ntpsnmpd-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.h) * - * It has been AutoGen-ed November 17, 2009 at 07:28:27 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:37:58 PM by AutoGen 5.10 * From the definitions ntpsnmpd-opts.def * and the template file options * @@ -128,7 +128,7 @@ typedef enum { ntpsnmpdOptions.pzCurOpt = NULL ) #define START_OPT RESTART_OPT(1) #define USAGE(c) (*ntpsnmpdOptions.pUsageProc)( &ntpsnmpdOptions, c ) -/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 409 */ +/* extracted from /usr/local/share/autogen/opthead.tpl near line 409 */ /* * * * * * * diff --git a/ntpsnmpd/ntpsnmpd-opts.texi b/ntpsnmpd/ntpsnmpd-opts.texi index 914943f85..cc5a02056 100644 --- a/ntpsnmpd/ntpsnmpd-opts.texi +++ b/ntpsnmpd/ntpsnmpd-opts.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (ntpsnmpd-opts.texi) # -# It has been AutoGen-ed November 17, 2009 at 07:28:29 AM by AutoGen 5.10 +# It has been AutoGen-ed November 17, 2009 at 05:37:59 PM by AutoGen 5.10 # From the definitions ntpsnmpd-opts.def # and the template file aginfo.tpl @end ignore @@ -33,7 +33,28 @@ This is the automatically generated usage text for ntpsnmpd: @exampleindent 0 @example -ntpsnmpd is unavailable - no --help +ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.5p238-RC +USAGE: ntpsnmpd [ - | -- ]... + Flg Arg Option-Name Description + -n no nofork Do not fork + -p no syslog Log to syslog() + opt version Output version information and exit + -? no help Display usage information and exit + -! no more-help Extended usage information passed thru pager + -> opt save-opts Save the option state to a config file + -< Str load-opts Load options from a config file + - disabled as --no-load-opts + - may appear multiple times + +Options are specified by doubled hyphens and their name +or by a single hyphen and the flag character. + +The following option preset mechanisms are supported: + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/ntp-dev-1142/ntpsnmpd/.ntprc + - examining environment variables named NTPSNMPD_* + +please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org @end example @exampleindent 4 diff --git a/sntp/main.c b/sntp/main.c index bec6e7360..8a440c953 100644 --- a/sntp/main.c +++ b/sntp/main.c @@ -17,7 +17,7 @@ char *progname = "sntp"; /* for msyslog */ -int ai_fam_pref; +int ai_fam_pref = AF_UNSPEC; volatile int debug; struct key *keys = NULL; @@ -66,12 +66,10 @@ sntp_main ( } else { /* Check for options -4 and -6 */ - if(ENABLED_OPT(IPV4)) + if (HAVE_OPT(IPV4)) ai_fam_pref = AF_INET; - else if(ENABLED_OPT(IPV6)) + else if (HAVE_OPT(IPV6)) ai_fam_pref = AF_INET6; - else - ai_fam_pref = 0; } log_msg("Started sntp", 0); diff --git a/sntp/sntp-opts.c b/sntp/sntp-opts.c index 6223a782d..01ffaefac 100644 --- a/sntp/sntp-opts.c +++ b/sntp/sntp-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (sntp-opts.c) * - * It has been AutoGen-ed November 17, 2009 at 07:33:00 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 07:35:07 PM by AutoGen 5.10 * From the definitions sntp-opts.def * and the template file options * @@ -58,21 +58,29 @@ extern tUsageProc optionUsage; #endif /* - * Ipv4 option description: + * Ipv4 option description with + * "Must also have options" and "Incompatible options": */ tSCC zIpv4Text[] = "Force IPv4 DNS name resolution"; tSCC zIpv4_NAME[] = "IPV4"; tSCC zIpv4_Name[] = "ipv4"; +static const int + aIpv4CantList[] = { + INDEX_OPT_IPV6, NO_EQUIVALENT }; #define IPV4_FLAGS (OPTST_DISABLED) /* - * Ipv6 option description: + * Ipv6 option description with + * "Must also have options" and "Incompatible options": */ tSCC zIpv6Text[] = "Force IPv6 DNS name resolution"; tSCC zIpv6_NAME[] = "IPV6"; tSCC zIpv6_Name[] = "ipv6"; +static const int + aIpv6CantList[] = { + INDEX_OPT_IPV4, NO_EQUIVALENT }; #define IPV6_FLAGS (OPTST_DISABLED) /* @@ -251,25 +259,25 @@ static tOptProc */ static tOptDesc optDesc[ OPTION_CT ] = { { /* entry idx, value */ 0, VALUE_OPT_IPV4, - /* equiv idx, value */ NO_EQUIVALENT, 0, + /* equiv idx, value */ 0, VALUE_OPT_IPV4, /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ IPV4_FLAGS, 0, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, - /* must/cannot opts */ NULL, NULL, + /* must/cannot opts */ NULL, aIpv4CantList, /* option proc */ NULL, /* desc, NAME, name */ zIpv4Text, zIpv4_NAME, zIpv4_Name, /* disablement strs */ NULL, NULL }, { /* entry idx, value */ 1, VALUE_OPT_IPV6, - /* equiv idx, value */ NOLIMIT, NOLIMIT, - /* equivalenced to */ INDEX_OPT_IPV4, + /* equiv idx, value */ 1, VALUE_OPT_IPV6, + /* equivalenced to */ NO_EQUIVALENT, /* min, max, act ct */ 0, 1, 0, /* opt state flags */ IPV6_FLAGS, 0, /* last opt argumnt */ { NULL }, /* arg list/cookie */ NULL, - /* must/cannot opts */ NULL, NULL, + /* must/cannot opts */ NULL, aIpv6CantList, /* option proc */ NULL, /* desc, NAME, name */ zIpv6Text, zIpv6_NAME, zIpv6_Name, /* disablement strs */ NULL, NULL }, @@ -485,7 +493,7 @@ job.\n\ NTP is the Network Time Protocol (RFC 1305) and SNTP is the\n\ Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).\n"; tSCC zFullVersion[] = SNTP_FULL_VERSION; -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 495 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 495 */ #if defined(ENABLE_NLS) # define OPTPROC_BASE OPTPROC_TRANSLATE @@ -541,7 +549,7 @@ doUsageOpt( (void)pOptions; USAGE( EXIT_SUCCESS ); } -/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 109 */ +/* extracted from /usr/local/share/autogen/optmain.tpl near line 109 */ #if defined(TEST_SNTP_OPTS) /* TEST MAIN PROCEDURE: */ @@ -556,7 +564,7 @@ main(int argc, char** argv) return res; } #endif /* defined TEST_SNTP_OPTS */ -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 627 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 627 */ #if ENABLE_NLS #include diff --git a/sntp/sntp-opts.def b/sntp/sntp-opts.def index 46a410e28..74bd6268e 100644 --- a/sntp/sntp-opts.def +++ b/sntp/sntp-opts.def @@ -29,7 +29,7 @@ test-main; flag = { name = ipv4; value = 4; - equivalence = ipv4; + flags-cant = ipv6; descrip = "Force IPv4 DNS name resolution"; doc = <<- _EndOfDoc_ Force DNS resolution of following host names on the command line @@ -40,7 +40,7 @@ flag = { flag = { name = ipv6; value = 6; - equivalence = ipv4; + flags-cant = ipv4; descrip = "Force IPv6 DNS name resolution"; doc = <<- _EndOfDoc_ Force DNS resolution of following host names on the command line @@ -48,6 +48,7 @@ flag = { _EndOfDoc_; }; + flag = { name = normalverbose; value = d; diff --git a/sntp/sntp-opts.h b/sntp/sntp-opts.h index 01f261191..50af578b1 100644 --- a/sntp/sntp-opts.h +++ b/sntp/sntp-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (sntp-opts.h) * - * It has been AutoGen-ed November 17, 2009 at 07:33:00 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 07:35:07 PM by AutoGen 5.10 * From the definitions sntp-opts.def * and the template file options * @@ -168,9 +168,6 @@ typedef enum { * Interface defines for specific options. */ #define VALUE_OPT_IPV4 '4' - -#define WHICH_OPT_IPV4 (DESC(IPV4).optActualValue) -#define WHICH_IDX_IPV4 (DESC(IPV4).optActualIndex) #define VALUE_OPT_IPV6 '6' #define VALUE_OPT_NORMALVERBOSE 'd' #define VALUE_OPT_KOD 'K' @@ -205,7 +202,7 @@ typedef enum { sntpOptions.pzCurOpt = NULL ) #define START_OPT RESTART_OPT(1) #define USAGE(c) (*sntpOptions.pUsageProc)( &sntpOptions, c ) -/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 409 */ +/* extracted from /usr/local/share/autogen/opthead.tpl near line 409 */ /* * * * * * * diff --git a/sntp/sntp-opts.texi b/sntp/sntp-opts.texi index be64e9071..8114b657c 100644 --- a/sntp/sntp-opts.texi +++ b/sntp/sntp-opts.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (sntp-opts.texi) # -# It has been AutoGen-ed November 17, 2009 at 07:33:02 AM by AutoGen 5.10 +# It has been AutoGen-ed November 17, 2009 at 07:35:07 PM by AutoGen 5.10 # From the definitions sntp-opts.def # and the template file aginfo.tpl @end ignore @@ -50,7 +50,7 @@ This is the automatically generated usage text for sntp: @exampleindent 0 @example -sntp - standard SNTP program - Ver. 4.2.5p242-RC +sntp - standard SNTP program - Ver. 4.2.5p238-RC USAGE: sntp [ - [] | --[@{=| @}] ]... ... Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution @@ -86,8 +86,8 @@ Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. The following option preset mechanisms are supported: - - reading file /users/stenn/.ntprc - - reading file /deacon/backroom/snaps/ntp-dev/sntp/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/ntp-dev-1142-79-1343/sntp/.ntprc - examining environment variables named SNTP_* .I sntp @@ -112,7 +112,8 @@ This is the ``force ipv4 dns name resolution'' option. This option has some usage constraints. It: @itemize @bullet @item -is a member of the ipv4 class of options. +must not appear in combination with any of the following options: +ipv6. @end itemize Force DNS resolution of following host names on the command line @@ -127,7 +128,8 @@ This is the ``force ipv6 dns name resolution'' option. This option has some usage constraints. It: @itemize @bullet @item -is a member of the ipv4 class of options. +must not appear in combination with any of the following options: +ipv4. @end itemize Force DNS resolution of following host names on the command line diff --git a/sntp/sntp.1 b/sntp/sntp.1 index fa0b018d7..eb335acbf 100644 --- a/sntp/sntp.1 +++ b/sntp/sntp.1 @@ -1,7 +1,7 @@ .TH SNTP 1 2009-11-17 "( 4.2.5p246-RC)" "Programmer's Manual" .\" EDIT THIS FILE WITH CAUTION (sntp.1) .\" -.\" It has been AutoGen-ed November 17, 2009 at 07:33:01 AM by AutoGen 5.10 +.\" It has been AutoGen-ed November 17, 2009 at 07:35:07 PM by AutoGen 5.10 .\" From the definitions sntp-opts.def .\" and the template file agman1.tpl .\" @@ -156,14 +156,16 @@ to do this automatically. .TP .BR \-4 ", " \--ipv4 Force IPv4 DNS name resolution. -This option is a member of the ipv4 class of options. +This option must not appear in combination with any of the following options: +ipv6. .sp Force DNS resolution of following host names on the command line to the IPv4 namespace. .TP .BR \-6 ", " \--ipv6 Force IPv6 DNS name resolution. -This option is a member of the ipv4 class of options. +This option must not appear in combination with any of the following options: +ipv4. .sp Force DNS resolution of following host names on the command line to the IPv6 namespace. diff --git a/util/ntp-keygen-opts.c b/util/ntp-keygen-opts.c index 62f19ec81..aeef0cda0 100644 --- a/util/ntp-keygen-opts.c +++ b/util/ntp-keygen-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.c) * - * It has been AutoGen-ed November 17, 2009 at 07:33:15 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:38:44 PM by AutoGen 5.10 * From the definitions ntp-keygen-opts.def * and the template file options * @@ -752,7 +752,7 @@ tSCC zDetail[] = "\n\ If there is no new host key, look for an existing one.\n\ If one is not found, create it.\n"; tSCC zFullVersion[] = NTP_KEYGEN_FULL_VERSION; -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 495 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 495 */ #if defined(ENABLE_NLS) # define OPTPROC_BASE OPTPROC_TRANSLATE @@ -874,7 +874,7 @@ doOptModulus(tOptions* pOptions, tOptDesc* pOptDesc) pOptDesc->optArg.argInt = val; } #endif /* defined OPENSSL */ -/* extracted from /usr/local/gnu/share/autogen/optmain.tpl near line 109 */ +/* extracted from /usr/local/share/autogen/optmain.tpl near line 109 */ #if defined(TEST_NTP_KEYGEN_OPTS) /* TEST MAIN PROCEDURE: */ @@ -889,7 +889,7 @@ main(int argc, char** argv) return res; } #endif /* defined TEST_NTP_KEYGEN_OPTS */ -/* extracted from /usr/local/gnu/share/autogen/optcode.tpl near line 627 */ +/* extracted from /usr/local/share/autogen/optcode.tpl near line 627 */ #if ENABLE_NLS #include diff --git a/util/ntp-keygen-opts.h b/util/ntp-keygen-opts.h index f3ec9cb0c..4b93831c6 100644 --- a/util/ntp-keygen-opts.h +++ b/util/ntp-keygen-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.h) * - * It has been AutoGen-ed November 17, 2009 at 07:33:14 AM by AutoGen 5.10 + * It has been AutoGen-ed November 17, 2009 at 05:38:44 PM by AutoGen 5.10 * From the definitions ntp-keygen-opts.def * and the template file options * @@ -252,7 +252,7 @@ typedef enum { ntp_keygenOptions.pzCurOpt = NULL ) #define START_OPT RESTART_OPT(1) #define USAGE(c) (*ntp_keygenOptions.pUsageProc)( &ntp_keygenOptions, c ) -/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 409 */ +/* extracted from /usr/local/share/autogen/opthead.tpl near line 409 */ /* * * * * * * diff --git a/util/ntp-keygen-opts.texi b/util/ntp-keygen-opts.texi index 66b03d576..0a87cc224 100644 --- a/util/ntp-keygen-opts.texi +++ b/util/ntp-keygen-opts.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (ntp-keygen-opts.texi) # -# It has been AutoGen-ed November 17, 2009 at 07:33:17 AM by AutoGen 5.10 +# It has been AutoGen-ed November 17, 2009 at 05:38:45 PM by AutoGen 5.10 # From the definitions ntp-keygen-opts.def # and the template file aginfo.tpl @end ignore @@ -50,8 +50,8 @@ This is the automatically generated usage text for ntp-keygen: @exampleindent 0 @example -Using OpenSSL version 90704f -ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.5p242-RC +Using OpenSSL version 90705f +ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.5p238-RC USAGE: ntp-keygen [ - [] | --[@{=| @}] ]... Flg Arg Option-Name Description -c Str certificate certificate scheme @@ -87,8 +87,8 @@ Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. The following option preset mechanisms are supported: - - reading file /users/stenn/.ntprc - - reading file /deacon/backroom/snaps/ntp-dev/util/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/.ntprc + - reading file /a/etc/amd.stage/thump2-g3/export/ntp/home/hart/ntp-dev-1142/util/.ntprc - examining environment variables named NTP_KEYGEN_* If there is no new host key, look for an existing one. diff --git a/util/ntp-keygen.1 b/util/ntp-keygen.1 index 438f49ae3..02051aa7b 100644 --- a/util/ntp-keygen.1 +++ b/util/ntp-keygen.1 @@ -1,7 +1,7 @@ .TH NTP-KEYGEN 1 2009-11-17 "(ntp 4.2.5p246-RC)" "Programmer's Manual" .\" EDIT THIS FILE WITH CAUTION (ntp-keygen.1) .\" -.\" It has been AutoGen-ed November 17, 2009 at 07:33:16 AM by AutoGen 5.10 +.\" It has been AutoGen-ed November 17, 2009 at 05:38:44 PM by AutoGen 5.10 .\" From the definitions ntp-keygen-opts.def .\" and the template file agman1.tpl .\"