]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0499: MS-Windows: doesn't handle symlinks properly v9.1.0499
authorLemonBoy <thatlemon@gmail.com>
Tue, 18 Jun 2024 18:43:51 +0000 (20:43 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 18 Jun 2024 18:43:51 +0000 (20:43 +0200)
commit23c5ebeb95cb942df307946e3ced230a7c8312eb
treeba0d773ef75a8b7a58b77cb9cb675fce1d28827c
parenta821b609f9bb9daef032fe1cb8fb95995822e367
patch 9.1.0499: MS-Windows: doesn't handle symlinks properly

Problem:  MS-Windows: doesn't handle symlinks properly
          (Timothy Madden)
Solution: Implement lstat() on MS-Windows
          (author)

lstat() differs from stat() in how it handles symbolic links, the former
doesn't resolve the symlink while the latter does so.

Implement a simple yet effective fallback using Win32 APIs.

fixes #14933
closes: #15014

Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/filepath.c
src/macros.h
src/os_mswin.c
src/proto/os_mswin.pro
src/testdir/test_functions.vim
src/version.c