mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
When encountering symlinks, do_lstat() currently overwrites buf->st_mode with S_IFREG if follow is true. This is incorrect when the symlink points to a directory. get_file_attr calls GetFileAttributesExA, which follows symlinks already. So our st_mode should already be correct at this point. Tested-by: Pat Thoyts <patthoyts@users.sourceforge.net> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>