]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3373. [bug] win32: open raw files in binary mode. [RT #30944]
authorMark Andrews <marka@isc.org>
Wed, 9 Jan 2013 06:03:03 +0000 (17:03 +1100)
committerMark Andrews <marka@isc.org>
Wed, 9 Jan 2013 06:06:01 +0000 (17:06 +1100)
was not complete openfile_raw should be using mode "rb" rather than "r".

lib/dns/master.c

index 463ee5241a798295df20e1878cbb8aa300f21a04..ff1c2abbe9cb815513ad59e5bf10b78f54b79ac8 100644 (file)
@@ -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",