From 5245045e10f1c787b3e0036833cec1295de080dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 21 Jun 2007 11:38:53 +0000 Subject: [PATCH] - bugfix which prevented two character lenght databases beingbackuped Changed files: mysql-bug-29082.patch -> 1.1 --- mysql-bug-29082.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mysql-bug-29082.patch diff --git a/mysql-bug-29082.patch b/mysql-bug-29082.patch new file mode 100644 index 0000000..0cb62d9 --- /dev/null +++ b/mysql-bug-29082.patch @@ -0,0 +1,16 @@ +--- mysql-5.0.41/scripts/mysqlhotcopy.sh~ 2007-06-21 14:37:22.000000000 +0300 ++++ mysql-5.0.41/scripts/mysqlhotcopy.sh 2007-06-21 14:37:24.924257114 +0300 +@@ -605,7 +605,12 @@ + # add recursive option for scp + $cp.= " -r" if $^O =~ /m^(solaris|linux|freebsd|darwin)$/ && $method =~ /^scp\b/; + +- my @non_raid = map { "'$_'" } grep { ! m:/$raid_dir_regex/[^/]+$: } @$files; ++ my @non_raid; ++ if (@$raid_dirs) { ++ @non_raid = map { "'$_'" } grep { ! m:/$raid_dir_regex/[^/]+$: } @$files; ++ } else { ++ @non_raid = @$files; ++ } + + # add files to copy and the destination directory + safe_system( $cp, @non_raid, "'$target'" ) if (@non_raid); -- 2.44.0