mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-28 20:50:24 -04:00
use binary mode for raw/fast
This commit is contained in:
parent
2337530ee1
commit
5ffdd53520
1 changed files with 4 additions and 1 deletions
|
|
@ -3559,7 +3559,10 @@ main(int argc, char *argv[]) {
|
|||
result = isc_file_mktemplate(output, tempfile, tempfilelen);
|
||||
check_result(result, "isc_file_mktemplate");
|
||||
|
||||
result = isc_file_openunique(tempfile, &fp);
|
||||
if (outputformat == dns_masterformat_text)
|
||||
result = isc_file_openunique(tempfile, &fp);
|
||||
else
|
||||
result = isc_file_bopenunique(tempfile, &fp);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
fatal("failed to open temporary output file: %s",
|
||||
isc_result_totext(result));
|
||||
|
|
|
|||
Loading…
Reference in a new issue