From e49238474c3e2b34d39d23f6e21b256e4c21c090 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 14 Sep 2001 04:54:56 +0000 Subject: [PATCH] 'dig +short' should explicitly enable printing the answer section. Otherwise, 'dig +noall +short' prints nothing. --- bin/dig/dig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/dig/dig.c b/bin/dig/dig.c index f45c01eb28..ba42a3c260 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.c,v 1.162 2001/09/13 03:02:59 marka Exp $ */ +/* $Id: dig.c,v 1.163 2001/09/14 04:54:56 bwelling Exp $ */ #include #include @@ -800,6 +800,7 @@ plus_option(char *option, isc_boolean_t is_batchfile, if (state) { printcmd = ISC_FALSE; lookup->section_additional = ISC_FALSE; + lookup->section_answer = ISC_TRUE; lookup->section_authority = ISC_FALSE; lookup->section_question = ISC_FALSE; lookup->comments = ISC_FALSE;