From 8b057fee62222769f4eac624c81d730b0c02ee85 Mon Sep 17 00:00:00 2001 From: Monty Date: Tue, 8 Oct 2024 18:21:24 +0300 Subject: [PATCH] Fixed core dump in mysqltest in move-file when using wrong paths --- client/mysqltest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 5934b928455..c47b33e97f7 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -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; }