mingw: remove 248-char limit when creating directories

It is true that Windows XP could not create directories using paths
longer than 248 chars.

But ever since Vista, it is possible. And we stopped supporting earlier
Windows versions starting with Git for Windows v2.10.1, i.e. a few
versions ago...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2017-02-24 17:47:37 +01:00
parent 09c9ba95ba
commit 75d0b705f5

View File

@@ -374,9 +374,7 @@ int mingw_mkdir(const char *path, int mode)
{
int ret;
wchar_t wpath[MAX_LONG_PATH];
/* CreateDirectoryW path limit is 248 (MAX_PATH - 8.3 file name) */
if (xutftowcs_path_ex(wpath, path, MAX_LONG_PATH, -1, 248,
core_long_paths) < 0)
if (xutftowcs_long_path(wpath, path) < 0)
return -1;
ret = _wmkdir(wpath);