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
2ef8b1e7
Commit
2ef8b1e7
authored
19 years ago
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix quoting of options passed to external commands by mysqld_multi. (Bug #11280)
parent
298af8cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+10
-3
No files found.
scripts/mysqld_multi.sh
View file @
2ef8b1e7
...
...
@@ -289,8 +289,10 @@ sub start_mysqlds()
}
else
{
$options
[
$j
]=
~ s/
;
/
\\
;
/g
;
$tmp
.
=
"
$options
[
$j
]"
;
# we single-quote the argument, but first convert single-quotes to
# '"'"' so they are passed through correctly
$options
[
$j
]=
~ s/
'/'
"'"
'/g;
$tmp.= " '
$options
[
$j
]
'";
}
}
if ($opt_verbose && $com =~ m/\/safe_mysqld$/ && !$info_sent)
...
...
@@ -374,7 +376,12 @@ sub get_mysqladmin_options
$mysqladmin_found= 0 if (!length($mysqladmin));
$com = "$mysqladmin";
$tmp = " -u $opt_user";
$tmp
.
=
defined
(
$opt_password
)
?
" -p
$opt_password
"
:
""
;
if (defined($opt_password)) {
my $pw= $opt_password;
# Protect single quotes in password
$pw =~ s/'
/
'"'
"'/g;
$tmp
.= "
-p
'$pw'
";
}
$tmp
.=
$opt_tcp_ip
? "
-h
127.0.0.1
" : "";
for (
$j
= 0; defined(
$options
[
$j
]);
$j
++)
{
...
...
This diff is collapsed.
Click to expand it.
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