Merge lp:~percona-dev/percona-xtrabackup/bug688211 into lp:percona-xtrabackup/2.0

Proposed by Alexey Kopytov
Status: Merged
Approved by: Vadim Tkachenko
Approved revision: 205
Merge reported by: Alexey Kopytov
Merged at revision: not available
Proposed branch: lp:~percona-dev/percona-xtrabackup/bug688211
Merge into: lp:percona-xtrabackup/2.0
Diff against target: 33 lines (+6/-6)
1 file modified
innobackupex-1.5.1 (+6/-6)
To merge this branch: bzr merge lp:~percona-dev/percona-xtrabackup/bug688211
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Review via email: mp+43379@code.launchpad.net
To post a comment you must log in.
205. By Alexey Kopytov

Bug #688211: cannot handle MySQL passwords which contain special
characters

The problem was that all options (not just passwords) were not properly
quoted before passing it to the shell when calling the mysql command
line client.

Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

ok for me

review: Approve
Revision history for this message
Alexey Kopytov (akopytov) wrote :

The code changes to innobackupex were merged along with the test cases in MP #44989.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'innobackupex-1.5.1'
2--- innobackupex-1.5.1 2010-11-29 17:29:58 +0000
3+++ innobackupex-1.5.1 2010-12-10 18:12:04 +0000
4@@ -1114,23 +1114,23 @@
5
6 # this option has to be first
7 if ($option_defaults_file) {
8- $options = "$options --defaults-file=\"$option_defaults_file\"";
9+ $options = "$options --defaults-file='$option_defaults_file'";
10 }
11
12 if ($option_mysql_password) {
13- $options = "$options --password=$option_mysql_password";
14+ $options = "$options --password='$option_mysql_password'";
15 }
16 if ($option_mysql_user) {
17- $options = "$options --user=$option_mysql_user";
18+ $options = "$options --user='$option_mysql_user'";
19 }
20 if ($option_mysql_host) {
21- $options = "$options --host=$option_mysql_host";
22+ $options = "$options --host='$option_mysql_host'";
23 }
24 if ($option_mysql_port) {
25- $options = "$options --port=$option_mysql_port";
26+ $options = "$options --port='$option_mysql_port'";
27 }
28 if ($option_mysql_socket) {
29- $options = "$options --socket=$option_mysql_socket";
30+ $options = "$options --socket='$option_mysql_socket'";
31 }
32 $options = "$options --unbuffered --";
33 return $options;

Subscribers

People subscribed via source and target branches