3373. [bug] win32: open raw files in binary mode. [RT #30944]
was not complete openfile_raw should be using mode "rb" rather than "r".
This commit is contained in:
+1
-1
@@ -773,7 +773,7 @@ static isc_result_t
|
||||
openfile_raw(dns_loadctx_t *lctx, const char *master_file) {
|
||||
isc_result_t result;
|
||||
|
||||
result = isc_stdio_open(master_file, "r", &lctx->f);
|
||||
result = isc_stdio_open(master_file, "rb", &lctx->f);
|
||||
if (result != ISC_R_SUCCESS && result != ISC_R_FILENOTFOUND) {
|
||||
UNEXPECTED_ERROR(__FILE__, __LINE__,
|
||||
"isc_stdio_open() failed: %s",
|
||||
|
||||
Reference in New Issue
Block a user