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
e087434c
Commit
e087434c
authored
Nov 12, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that mysql_home ends in FN_LIBCHAR after realpath()
parent
e61e1c8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sql/mysqld.cc
sql/mysqld.cc
+9
-1
No files found.
sql/mysqld.cc
View file @
e087434c
...
@@ -4472,9 +4472,17 @@ fn_format_relative_to_data_home(my_string to, const char *name,
...
@@ -4472,9 +4472,17 @@ fn_format_relative_to_data_home(my_string to, const char *name,
static
void
fix_paths
(
void
)
static
void
fix_paths
(
void
)
{
{
char
buff
[
FN_REFLEN
];
char
buff
[
FN_REFLEN
]
,
*
pos
;
convert_dirname
(
mysql_home
,
mysql_home
,
NullS
);
convert_dirname
(
mysql_home
,
mysql_home
,
NullS
);
/* Resolve symlinks to allow 'mysql_home' to be a relative symlink */
my_realpath
(
mysql_home
,
mysql_home
,
MYF
(
0
));
my_realpath
(
mysql_home
,
mysql_home
,
MYF
(
0
));
/* Ensure that mysql_home ends in FN_LIBCHAR */
pos
=
strend
(
mysql_home
);
if
(
pos
[
-
1
]
!=
FN_LIBCHAR
)
{
pos
[
0
]
=
FN_LIBCHAR
;
pos
[
1
]
=
0
;
}
convert_dirname
(
mysql_real_data_home
,
mysql_real_data_home
,
NullS
);
convert_dirname
(
mysql_real_data_home
,
mysql_real_data_home
,
NullS
);
convert_dirname
(
language
,
language
,
NullS
);
convert_dirname
(
language
,
language
,
NullS
);
(
void
)
my_load_path
(
mysql_home
,
mysql_home
,
""
);
// Resolve current dir
(
void
)
my_load_path
(
mysql_home
,
mysql_home
,
""
);
// Resolve current dir
...
...
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