0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.1.1417: MS-Windows: resolve() does not resolve all components of path

Problem:    MS-Windows: resolve() does not resolve all components of the path.
            (David Briscoe)
Solution:   Do not bail out for a reparse point. (Yasuhiro Matsumoto,
            closes #4211, closes #4447)
This commit is contained in:
Bram Moolenaar
2019-05-29 20:36:54 +02:00
parent bc133543b8
commit 1bbebab525
3 changed files with 16 additions and 7 deletions

View File

@@ -1787,12 +1787,6 @@ resolve_reparse_point(char_u *fname)
if (p == NULL)
goto fail;
if ((GetFileAttributesW(p) & FILE_ATTRIBUTE_REPARSE_POINT) == 0)
{
vim_free(p);
goto fail;
}
h = CreateFileW(p, 0, 0, NULL, OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS, NULL);
vim_free(p);