Merge branch 'u/fanf2/compilezone-hang' into 'master'

Fix hang in `named-compilezone | head`

See merge request isc-projects/bind9!2481
This commit is contained in:
Mark Andrews 2019-10-29 19:42:08 -04:00
commit c79077894a
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
5307. [bug] Fix hang when named-compilezone output is sent to pipe.
Thanks to Tony Finch. [GL !2481]
5306. [placeholder]
5305. [bug] NSEC Aggressive Cache ("synth-from-dnssec") has been
@ -11,7 +14,7 @@
5303. [placeholder]
5302. [bug] Fix checking that "dnstap-output" is defined when
"dnstap" is specified" in a view. [GL #1281]
"dnstap" is specified in a view. [GL #1281]
5301. [bug] Detect partial prefixes / incomplete IPv4 address in
acls. [GL #1143]

View file

@ -716,7 +716,7 @@ dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
FILE *output = stdout;
const char *flags;
flags = (fileformat == dns_masterformat_text) ? "w+" : "wb+";
flags = (fileformat == dns_masterformat_text) ? "w" : "wb";
if (debug) {
if (filename != NULL && strcmp(filename, "-") != 0)