fixup! mingw: support long paths (#5550)

When rebasing c8b6c1db91 (mingw: support long paths, 2015-07-28) on
top of 391bceae43 (compat/mingw: support POSIX semantics for atomic
renames, 2024-10-27) a newly introduced MAX_PATH buffer was not
increased to MAX_LONG_PATH.

This fixes https://github.com/git-for-windows/git/issues/5476
This commit is contained in:
Johannes Schindelin
2025-04-07 08:50:10 +02:00
committed by GitHub

View File

@@ -2857,9 +2857,9 @@ repeat:
* flex array so that the structure has to be allocated on
* the heap. As we declare this structure ourselves though
* we can avoid the allocation and define FileName to have
* MAX_PATH bytes.
* MAX_LONG_PATH bytes.
*/
WCHAR FileName[MAX_PATH];
WCHAR FileName[MAX_LONG_PATH];
} rename_info = { 0 };
HANDLE old_handle = INVALID_HANDLE_VALUE;
BOOL success;