]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2967. [bug] 'host -D' now turns on debugging messages earlier.
authorMark Andrews <marka@isc.org>
Tue, 19 Oct 2010 02:57:46 +0000 (02:57 +0000)
committerMark Andrews <marka@isc.org>
Tue, 19 Oct 2010 02:57:46 +0000 (02:57 +0000)
                        [RT #22361]

CHANGES
bin/dig/host.c

diff --git a/CHANGES b/CHANGES
index e3e3f673e4565ad938637560ff83e858c792ee50..7145af629520919efde369d63667fb76d67092f7 100644 (file)
--- 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,
index 8cd5b3db29a89f964e4ab5501bae26ba2fb89775..722db261efced6633eaf12f2db202d0851d002b4 100644 (file)
@@ -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) {