summaryrefslogtreecommitdiff
path: root/scripts/mysqlhotcopy.sh
diff options
context:
space:
mode:
authorunknown <jani@rhols221.adsl.netsonic.fi>2003-10-22 18:19:59 +0300
committerunknown <jani@rhols221.adsl.netsonic.fi>2003-10-22 18:19:59 +0300
commitcbc5304742cdb7da8cd3ef8dbcfe15eef01cdb1e (patch)
treeda4dc63159f8252e0d2507c35a53ac79ada16a11 /scripts/mysqlhotcopy.sh
parent15988a374d9237e9111c07960b4e8c176530f66e (diff)
downloadmariadb-git-cbc5304742cdb7da8cd3ef8dbcfe15eef01cdb1e.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;
}
}
}