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

Fix hang in `named-compilezone | head`

See merge request isc-projects/bind9!2497
This commit is contained in:
Mark Andrews
2019-10-29 20:15:52 -04:00
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
5307. [bug] Fix hang when named-compilezone output is sent to pipe.
Thanks to Tony Finch. [GL !2481]
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

@@ -747,7 +747,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)