diff options
author | monty@mashka.mysql.fi <> | 2002-12-27 23:29:27 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-12-27 23:29:27 +0200 |
commit | a41886a09656cd8fb52720941cb29eb07aa2d67f (patch) | |
tree | ce5a2d60dea245592d27aa36896ed03b92c810d7 /client | |
parent | f22fde21c0667042dd716d9c07081565b7a56c5c (diff) | |
download | mariadb-git-a41886a09656cd8fb52720941cb29eb07aa2d67f.tar.gz |
Added O_BINARY flag to all my_fopen() calls.
(To make the current tests results work on windows)
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index cfb7fe1aeaf..18fafff275e 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -43,7 +43,7 @@ **********************************************************************/ -#define MTEST_VERSION "1.10" +#define MTEST_VERSION "1.11" #include <global.h> #include <my_sys.h> @@ -573,7 +573,7 @@ int open_file(const char* name) { if (*cur_file && cur_file == file_stack_end) die("Source directives are nesting too deep"); - if (!(*(cur_file+1) = my_fopen(name, O_RDONLY, MYF(MY_WME)))) + if (!(*(cur_file+1) = my_fopen(name, O_RDONLY | O_BINARY, MYF(MY_WME)))) die(NullS); cur_file++; *++lineno=1; @@ -1589,7 +1589,7 @@ int parse_args(int argc, char **argv) result_file = optarg; break; case 'x': - if (!(*cur_file = my_fopen(optarg, O_RDONLY, MYF(MY_WME)))) + if (!(*cur_file = my_fopen(optarg, O_RDONLY | O_BINARY, MYF(MY_WME)))) die("Could not open %s: errno = %d", optarg, errno); break; case 'p': |