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
c21a5bc8
Commit
c21a5bc8
authored
Mar 21, 2007
by
omer@linux.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modifying mysql-test-run.pl to allow steeing of --secure-file-priv to 'mysql-test' when
running suites other tha the main one
parent
fb336272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+10
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
c21a5bc8
...
...
@@ -3642,8 +3642,16 @@ sub mysqld_arguments ($$$$$) {
if
(
$mysql_version_id
>=
50036
)
{
# Prevent the started mysqld to access files outside of vardir
mtr_add_arg
(
$args
,
"
%s--secure-file-priv=%s
",
$prefix
,
$opt_vardir
);
# By default, prevent the started mysqld to access files outside of vardir
my
$secure_file_dir
=
$opt_vardir
;
if
(
$opt_suite
ne
"
main
"
)
{
# When running a suite other than default allow the mysqld
# access to subdirs of mysql-test/ in order to make it possible
# to "load data" from the suites data/ directory.
$secure_file_dir
=
$glob_mysql_test_dir
;
}
mtr_add_arg
(
$args
,
"
%s--secure-file-priv=%s
",
$prefix
,
$secure_file_dir
);
}
if
(
$mysql_version_id
>=
50000
)
...
...
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