Commit 1f13733b authored by Elena Stepanova's avatar Elena Stepanova

MDEV-5272 MTR/mysqltest overlays for included files do not work on Windows

Modified according to the review comment
parent 700397a8
......@@ -2992,9 +2992,6 @@ void open_file(const char *name)
char buff[FN_REFLEN];
size_t length;
const char *curname= cur_file->file_name;
#ifdef __WIN__
fix_win_paths(curname, sizeof(curname));
#endif
DBUG_ENTER("open_file");
DBUG_PRINT("enter", ("name: %s", name));
......@@ -3037,6 +3034,10 @@ void open_file(const char *name)
5.try in basedir
*/
#ifdef __WIN__
fix_win_paths(curname, sizeof(curname));
#endif
bool in_overlay= opt_overlay_dir &&
!strncmp(curname, opt_overlay_dir, overlay_dir_len);
bool in_suiteir= opt_overlay_dir && !in_overlay &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment