Fixed bug #954 mysqlhotcopy permission problem. The database

directory owner ship was not honored.
This commit is contained in:
jani@rhols221.adsl.netsonic.fi 2003-10-22 18:19:59 +03:00
parent 07c9d4575b
commit 94cce64416

View file

@ -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;
}
}
}