+* [Bug 902] Fix problems with the -6 flag.
* Updated include/copyright.def (owner and year).
* [Bug 878] Avoid ntpdc use of refid value as unterminated string.
* [Bug 881] Corrected display of pll offset on 64bit systems.
* THEN just print the name and continue
*/
if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_NONE) {
- fprintf( fp, "%s\n",
- (DISABLED_OPT( p )) ? p->pz_DisableName : p->pz_Name );
+ char const * pznm =
+ (DISABLED_OPT( p )) ? p->pz_DisableName : p->pz_Name;
+ /*
+ * If the option was disabled and the disablement name is NULL,
+ * then the disablement was caused by aliasing.
+ * Use the name as the string to emit.
+ */
+ if (pznm == NULL)
+ pznm = p->pz_Name;
+
+ fprintf(fp, "%s\n", pznm);
continue;
}
* THEN just print the name and continue
*/
if (OPTST_GET_ARGTYPE(pOD->fOptState) == OPARG_TYPE_NONE) {
- fprintf( fp, "%s\n",
- (DISABLED_OPT( p )) ? p->pz_DisableName : p->pz_Name );
+ char const * pznm =
+ (DISABLED_OPT( p )) ? p->pz_DisableName : p->pz_Name;
+ /*
+ * If the option was disabled and the disablement name is NULL,
+ * then the disablement was caused by aliasing.
+ * Use the name as the string to emit.
+ */
+ if (pznm == NULL)
+ pznm = p->pz_Name;
+
+ fprintf(fp, "%s\n", pznm);
continue;
}