From: Mark Andrews Date: Tue, 19 Oct 2010 02:57:46 +0000 (+0000) Subject: 2967. [bug] 'host -D' now turns on debugging messages earlier. X-Git-Tag: v9.6-ESV-R3~39 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c5081272d8e70864de304d133743bbcc64f89f54;p=thirdparty%2Fbind9.git 2967. [bug] 'host -D' now turns on debugging messages earlier. [RT #22361] --- diff --git a/CHANGES b/CHANGES index e3e3f673e45..7145af62952 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2967. [bug] 'host -D' now turns on debugging messages earlier. + [RT #22361] + 2966. [bug] isc_print_vsnprintf() failed to check if there was space available in the buffer when adding a left justified character with a non zero width, diff --git a/bin/dig/host.c b/bin/dig/host.c index 8cd5b3db29a..722db261efc 100644 --- a/bin/dig/host.c +++ b/bin/dig/host.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: host.c,v 1.116.216.3 2009/09/08 23:28:20 marka Exp $ */ +/* $Id: host.c,v 1.116.216.3.10.1 2010/10/19 02:57:46 marka Exp $ */ /*! \file */ @@ -625,7 +625,9 @@ pre_parse_args(int argc, char **argv) { case 'v': break; case 'w': break; case 'C': break; - case 'D': break; + case 'D': + debugging = ISC_TRUE; + break; case 'N': break; case 'R': break; case 'T': break; @@ -792,7 +794,7 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) { ndots = atoi(isc_commandline_argument); break; case 'D': - debugging = ISC_TRUE; + /* Handled by pre_parse_args(). */ break; case '4': if (have_ipv4) {