[MDEV-19128] file_name_parse() handes path MLOG_FILE_XXX in OS-dependend way Created: 2019-04-01 Updated: 2019-04-02 Resolved: 2019-04-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2.2, 10.3.0, 10.4.0 |
| Fix Version/s: | 10.2.24, 10.3.15, 10.4.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vladislav Vaintroub | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
file_name_parse() handes path MLOG_FILE_XXX in OS-dependend way, making it impossible e.g to prepare backup from Linux on Windows. As an example, I have this output trying to prepare backup from
quick and dirty fix makes it possible again
|
| Comments |
| Comment by Vladislav Vaintroub [ 2019-04-02 ] |
|
I tried with 10.4, I've no idea if it affects other versions |
| Comment by Marko Mäkelä [ 2019-04-02 ] |
|
I see the same code in MariaDB 10.2.2 already. The check fails to take into account that on Microsoft Windows, backslashes would be written as path separators. On Windows, either forward or backward slashes work fine, but on POSIX, only the forward slash would work. I believe that we must translate the ‘wrong’ path separator to the native format, because fil_name_process() seems to assume that the name is in the native format. |