Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9efb607e
Commit
9efb607e
authored
Dec 27, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added O_BINARY flag to all my_fopen() calls.
(To make the current tests results work on windows)
parent
d78c9adb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client/mysqltest.c
client/mysqltest.c
+3
-3
No files found.
client/mysqltest.c
View file @
9efb607e
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
**********************************************************************/
**********************************************************************/
#define MTEST_VERSION "1.1
0
"
#define MTEST_VERSION "1.1
1
"
#include <global.h>
#include <global.h>
#include <my_sys.h>
#include <my_sys.h>
...
@@ -573,7 +573,7 @@ int open_file(const char* name)
...
@@ -573,7 +573,7 @@ int open_file(const char* name)
{
{
if
(
*
cur_file
&&
cur_file
==
file_stack_end
)
if
(
*
cur_file
&&
cur_file
==
file_stack_end
)
die
(
"Source directives are nesting too deep"
);
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
);
die
(
NullS
);
cur_file
++
;
cur_file
++
;
*++
lineno
=
1
;
*++
lineno
=
1
;
...
@@ -1589,7 +1589,7 @@ int parse_args(int argc, char **argv)
...
@@ -1589,7 +1589,7 @@ int parse_args(int argc, char **argv)
result_file
=
optarg
;
result_file
=
optarg
;
break
;
break
;
case
'x'
:
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
);
die
(
"Could not open %s: errno = %d"
,
optarg
,
errno
);
break
;
break
;
case
'p'
:
case
'p'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment