From 94cce644165e0009f9a057b8e21712e9b3f370ea Mon Sep 17 00:00:00 2001 From: "jani@rhols221.adsl.netsonic.fi" <> Date: Wed, 22 Oct 2003 18:19:59 +0300 Subject: Fixed bug #954 mysqlhotcopy permission problem. The database directory owner ship was not honored. --- scripts/mysqlhotcopy.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/mysqlhotcopy.sh') 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; } } } -- cgit v1.2.1