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
5905598e
Commit
5905598e
authored
May 25, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MERGE tables on Microsoft Windows. This a backport of the
fix from the main 5.0 tree. (Bug #10687)
parent
60d27239
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
myisammrg/myrg_open.c
myisammrg/myrg_open.c
+3
-1
mysys/my_getwd.c
mysys/my_getwd.c
+4
-1
No files found.
myisammrg/myrg_open.c
View file @
5905598e
...
@@ -67,7 +67,7 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
...
@@ -67,7 +67,7 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
while
((
length
=
my_b_gets
(
&
file
,
buff
,
FN_REFLEN
-
1
)))
while
((
length
=
my_b_gets
(
&
file
,
buff
,
FN_REFLEN
-
1
)))
{
{
if
((
end
=
buff
+
length
)[
-
1
]
==
'\n'
)
if
((
end
=
buff
+
length
)[
-
1
]
==
'\n'
)
end
[
-
1
]
=
'\0'
;
*--
end
=
'\0'
;
if
(
!
buff
[
0
])
if
(
!
buff
[
0
])
continue
;
/* Skip empty lines */
continue
;
/* Skip empty lines */
if
(
buff
[
0
]
==
'#'
)
if
(
buff
[
0
]
==
'#'
)
...
@@ -86,6 +86,8 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
...
@@ -86,6 +86,8 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
sizeof
(
name_buff
)
-
1
-
dir_length
));
sizeof
(
name_buff
)
-
1
-
dir_length
));
VOID
(
cleanup_dirname
(
buff
,
name_buff
));
VOID
(
cleanup_dirname
(
buff
,
name_buff
));
}
}
else
fn_format
(
buff
,
buff
,
""
,
""
,
0
);
if
(
!
(
isam
=
mi_open
(
buff
,
mode
,(
handle_locking
?
HA_OPEN_WAIT_IF_LOCKED
:
0
))))
if
(
!
(
isam
=
mi_open
(
buff
,
mode
,(
handle_locking
?
HA_OPEN_WAIT_IF_LOCKED
:
0
))))
goto
err
;
goto
err
;
if
(
!
m_info
)
/* First file */
if
(
!
m_info
)
/* First file */
...
...
mysys/my_getwd.c
View file @
5905598e
...
@@ -208,7 +208,10 @@ int test_if_hard_path(register const char *dir_name)
...
@@ -208,7 +208,10 @@ int test_if_hard_path(register const char *dir_name)
my_bool
has_path
(
const
char
*
name
)
my_bool
has_path
(
const
char
*
name
)
{
{
return
test
(
strchr
(
name
,
FN_LIBCHAR
))
return
test
(
strchr
(
name
,
FN_LIBCHAR
))
#if FN_LIBCHAR != '/'
||
test
(
strchr
(
name
,
'/'
))
#endif
#ifdef FN_DEVCHAR
#ifdef FN_DEVCHAR
||
test
(
strchr
(
name
,
FN_DEVCHAR
))
||
test
(
strchr
(
name
,
FN_DEVCHAR
))
#endif
#endif
...
...
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