1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/mysys
Vladislav Vaintroub 76ed5b7ea0 MDEV-28746 follow-up: missed relative paths overflowing MAX_PATH
my_win_sopen() only checked the length of the raw path it was given, but
the server opens table files via paths relative to its data directory,
so a short relative path can still overflow MAX_PATH once
resolved against a long enough datadir. That case was misreported as
ER_BAD_DB_ERROR instead of ER_CANT_CREATE_TABLE/ENAMETOOLONG.

Resolve the path via GetFullPathName() before deciding whether the path
was too long, factored into resolved_path_too_long(). A failed resolve
is only treated as too-long when GetLastError() is
ERROR_FILENAME_EXCED_RANGE, so unrelated resolution failures keep
mapping to the original CreateFile error.

Also fix the global errtable mapping of ERROR_FILENAME_EXCED_RANGE: it
was mapped to ENOENT, so any Win32 call that got that error code
directly (not via ERROR_PATH_NOT_FOUND) was misreported the same way.

Assisted-by: Claude:claude-sonnet-5
2026-10-05 19:54:49 +02:00
..
2024-12-19 15:38:53 +02:00
2019-05-13 17:54:04 +03:00
…
2024-05-10 20:02:18 +02:00
2023-08-04 08:01:06 +02:00
2024-11-29 13:43:17 +02:00
2020-05-13 14:25:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-19 20:55:37 +02:00
2019-05-11 22:19:05 +03:00
2019-05-14 17:18:46 +03:00
2025-09-04 18:08:39 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-11 21:29:06 +03:00
2019-05-14 17:18:46 +03:00
2019-05-13 17:54:04 +03:00
2025-10-09 13:29:46 +03:00
2019-05-11 19:15:57 +03:00
2019-05-19 20:55:37 +02:00
2023-11-08 12:59:00 +01:00
2022-04-25 09:40:40 +03:00
2022-12-13 18:01:49 +02:00
2019-05-11 21:29:06 +03:00
2019-05-11 22:19:05 +03:00
2022-11-04 13:50:36 +01:00
2019-05-19 20:55:37 +02:00
2019-05-11 21:29:06 +03:00
2024-11-23 08:14:22 -07:00
2019-05-19 20:55:37 +02:00
2023-10-14 13:36:11 +03:00
2019-05-11 21:29:06 +03:00
2020-02-04 23:23:50 +04:00
2019-05-11 18:30:45 +03:00
2022-10-25 14:25:42 +03:00
2019-05-11 21:29:06 +03:00
2019-05-19 20:55:37 +02:00
2022-12-13 16:58:58 +02:00
2022-07-31 14:54:37 +02:00
2019-05-10 20:52:00 +03:00
2021-03-19 11:14:53 +11:00
2024-10-31 10:01:01 +01:00
2021-10-29 18:29:01 +02:00
2019-05-14 17:18:46 +03:00
2022-12-13 16:58:58 +02:00
2025-08-21 15:17:20 +03:00
2019-05-11 21:29:06 +03:00
2019-05-10 20:52:00 +03:00
2019-05-11 21:29:06 +03:00
2024-11-29 13:43:17 +02:00
2019-05-14 17:18:46 +03:00