2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

[master] fix +split and +rrcomments with dig +short

4101.	[bug]		dig: the +split and +rrcomments options didn't
			work with +short. [RT #39291]
This commit is contained in:
Evan Hunt
2015-04-15 09:50:07 -07:00
parent c855e7170a
commit fc3ed1dbda
3 changed files with 13 additions and 1 deletions

View File

@@ -344,9 +344,12 @@ say_message(dns_rdata_t *rdata, dig_query_t *query, isc_buffer_t *buf) {
ADD_STRING(buf, " ");
}
if (rrcomments)
styleflags |= DNS_STYLEFLAG_RRCOMMENT;
if (nocrypto)
styleflags |= DNS_STYLEFLAG_NOCRYPTO;
result = dns_rdata_tofmttext(rdata, NULL, styleflags, 0, 60, " ", buf);
result = dns_rdata_tofmttext(rdata, NULL, styleflags, 0,
splitwidth, " ", buf);
if (result == ISC_R_NOSPACE)
return (result);
check_result(result, "dns_rdata_totext");