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
5a817ea6
Commit
5a817ea6
authored
Sep 02, 2004
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addition to the fix for #4815
parent
8459cd35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
sql/sql_class.cc
sql/sql_class.cc
+2
-10
No files found.
sql/sql_class.cc
View file @
5a817ea6
...
@@ -854,21 +854,13 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange,
...
@@ -854,21 +854,13 @@ static File create_file(THD *thd, char *path, sql_exchange *exchange,
{
{
File
file
;
File
file
;
uint
option
=
MY_UNPACK_FILENAME
;
uint
option
=
MY_UNPACK_FILENAME
;
char
buff
[
FN_REFLEN
];
#ifdef DONT_ALLOW_FULL_LOAD_DATA_PATHS
#ifdef DONT_ALLOW_FULL_LOAD_DATA_PATHS
option
|=
MY_REPLACE_DIR
;
// Force use of db directory
option
|=
MY_REPLACE_DIR
;
// Force use of db directory
#endif
#endif
char
*
cnt
=
strmake
(
buff
,
mysql_real_data_home
,
FN_REFLEN
);
strxnmov
(
path
,
FN_REFLEN
,
mysql_real_data_home
,
thd
->
db
?
thd
->
db
:
""
);
*
cnt
=
FN_LIBCHAR
;
(
void
)
fn_format
(
path
,
exchange
->
file_name
,
path
,
""
,
option
);
cnt
++
;
cnt
=
strmake
(
cnt
,
thd
->
db
?
thd
->
db
:
""
,
FN_REFLEN
-
(
cnt
-
buff
));
*
cnt
=
FN_LIBCHAR
;
cnt
++
;
*
cnt
=
0
;
(
void
)
fn_format
(
path
,
exchange
->
file_name
,
buff
,
""
,
option
);
if
(
!
access
(
path
,
F_OK
))
if
(
!
access
(
path
,
F_OK
))
{
{
my_error
(
ER_FILE_EXISTS_ERROR
,
MYF
(
0
),
exchange
->
file_name
);
my_error
(
ER_FILE_EXISTS_ERROR
,
MYF
(
0
),
exchange
->
file_name
);
...
...
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