]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: implement `readlink()`
authorKarsten Blees <blees@dcon.de>
Wed, 17 Dec 2025 14:08:50 +0000 (14:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Dec 2025 23:22:19 +0000 (08:22 +0900)
commit1977e5b9dee8b71f472ba10cfba851c686f6fada
treef0085879af9ee3ab8572c62f4ac178523cf467c2
parent8a08d14d0537aa46f89c205c0f33130d9fbff648
mingw: implement `readlink()`

Implement `readlink()` by reading NTFS reparse points via the
`read_reparse_point()` function that was introduced earlier to determine
the length of symlink targets. Works for symlinks and directory
junctions. If symlinks are disabled, fail with `ENOSYS`.

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