summaryrefslogtreecommitdiff
path: root/scripts/mysqlhotcopy.sh
diff options
context:
space:
mode:
authorjani@rhols221.adsl.netsonic.fi <>2003-10-22 18:19:59 +0300
committerjani@rhols221.adsl.netsonic.fi <>2003-10-22 18:19:59 +0300
commit94cce644165e0009f9a057b8e21712e9b3f370ea (patch)
treeda4dc63159f8252e0d2507c35a53ac79ada16a11 /scripts/mysqlhotcopy.sh
parent07c9d4575bba8ac3c6b5d364f3a63890f46e6953 (diff)
downloadmariadb-git-94cce644165e0009f9a057b8e21712e9b3f370ea.tar.gz
Fixed bug #954 mysqlhotcopy permission problem. The database
directory owner ship was not honored.
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r--scripts/mysqlhotcopy.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index 3e53af32653..654e5466e12 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -418,6 +418,8 @@ foreach my $rdb ( @db_desc ) {
else {
mkdir($tgt_dirpath, 0750) or die "Can't create '$tgt_dirpath': $!\n"
unless -d $tgt_dirpath;
+ my @f_info= stat "$datadir/$rdb->{src}";
+ chown $f_info[4], $f_info[5], $tgt_dirpath;
}
}
}