mariadb/client
Lorna Luo da73db2382 Make 'move_file' command more reliable in mysqltest
The tests innodb.import_tablespace_race, innodn.restart, and innodb.innodb-wl5522 move
the tablespace file between the data directory and the tmp directory specified by
global environment variables. However this is risky because it's not unusual that the
set tmp directory (often under /tmp) is mounted on another disk partition or device,
and 'move_file' command may fail with "Errcode: 18 'Invalid cross-device link.'"

To stabilize mysqltest in the described scenario, and prevent such
behavior in the future, let make_file() check both from file path and to
file path and make sure they are either both under MYSQLTEST_VARDIR or
MYSQL_TMP_DIR.

All new code of the whole pull request, including one or several files that
are either new files or modified ones, are contributed under the BSD-new license.
I am contributing on behalf of my employer Amazon Web Services, Inc.
2023-04-03 14:36:11 +02:00
..
async_example.c MWL#192: non-blocking client API, after-review fixes. 2012-01-06 12:43:18 +01:00
client_priv.h Merge 10.3 into 10.4 2022-06-02 16:34:17 +03:00
CMakeLists.txt Merge remote-tracking branch 'upstream/10.3' into 10.4 2021-09-09 09:23:35 +03:00
completion_hash.cc Merge 10.2 into 10.3 2020-11-02 15:48:47 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
echo.c Fix typos in the codebase. 2022-08-09 18:41:09 +03:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc MDBF-534: Coverity scan: fix client folder 2023-02-17 13:43:43 +00:00
mysql_plugin.c Fix few vulnerabilities found by Cppcheck 2023-03-02 14:38:24 +11:00
mysql_upgrade.c MDEV-24453 Added support for a 5th --verbose parameter in mariadb-upgrade to show mysql results for mysql_fix_privilege_tables 2023-03-27 16:29:14 +02:00
mysqladmin.cc MDBF-534: Coverity scan: fix client folder 2023-02-17 13:43:43 +00:00
mysqlbinlog.cc MDEV-30698 Cover missing test cases for mariadb-binlog options --raw [and] --flashback 2023-03-08 12:26:00 +00:00
mysqlcheck.c MDBF-534: Coverity scan: fix client folder 2023-02-17 13:43:43 +00:00
mysqldump.c MDBF-534: Coverity scan: fix client folder 2023-02-17 13:43:43 +00:00
mysqlimport.c Remove HAVE_SNPRINTF 2022-10-05 10:09:49 +03:00
mysqlshow.c Merge branch '10.3' into 10.4 2022-10-01 23:07:26 +02:00
mysqlslap.c MDBF-534: Coverity scan: fix client folder 2023-02-17 13:43:43 +00:00
mysqltest.cc Make 'move_file' command more reliable in mysqltest 2023-04-03 14:36:11 +02:00
readline.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_string.cc.dontuse Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_string.h.dontuse Update FSF Address 2019-05-11 21:29:06 +03:00