mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Fixed bug #954 mysqlhotcopy permission problem. The database
directory owner ship was not honored.
This commit is contained in:
parent
15988a374d
commit
cbc5304742
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue