]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: add symlink-specific error codes
authorKarsten Blees <karsten.blees@gmail.com>
Fri, 9 Jan 2026 20:05:06 +0000 (20:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Jan 2026 02:32:55 +0000 (18:32 -0800)
commit9ac15c2ae3d4d7caf27444930f2e3d12a6eebee8
treeb7e3c637155f3b5fd4b7b499eaab7095583d4c6e
parent1bf1ffadc862c072e6cf27c67fcc72d4da23a492
mingw: add symlink-specific error codes

The Win32 API calls do not set `errno`; Instead, error codes for failed
operations must be obtained via the `GetLastError()` function. Git would
not know what to do with those error values, though, which is why Git's
Windows compatibility layer translates them to `errno` values.

Let's handle a couple of symlink-related error codes that will become
relevant with the upcoming support for symlinks on Windows.

Signed-off-by: Karsten Blees <karsten.blees@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c