mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fixed core dump in mysqltest in move-file when using wrong paths
This commit is contained in:
parent
0de2613e7a
commit
8b057fee62
1 changed files with 3 additions and 3 deletions
|
@ -3867,9 +3867,9 @@ void do_move_file(struct st_command *command)
|
|||
is_sub_path(ds_to_file.str, to_plen, vardir)) ||
|
||||
(is_sub_path(ds_from_file.str, from_plen, tmpdir) &&
|
||||
is_sub_path(ds_to_file.str, to_plen, tmpdir)))) {
|
||||
report_or_die("Paths '%s' and '%s' are not both under MYSQLTEST_VARDIR '%s'"
|
||||
"or both under MYSQL_TMP_DIR '%s'",
|
||||
ds_from_file, ds_to_file, vardir, tmpdir);
|
||||
report_or_die("Paths '%s' and '%s' are not both under "
|
||||
"MYSQLTEST_VARDIR '%s' or both under MYSQL_TMP_DIR '%s'",
|
||||
ds_from_file.str, ds_to_file.str, vardir, tmpdir);
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue