mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-12 11:40:01 +00:00
Fix Windows symlinks
This commit is contained in:
parent
f3e492107a
commit
ff9df88396
@ -103,7 +103,7 @@ static int do_lstat(
|
|||||||
/* Windows symlinks have zero file size, call readlink to determine
|
/* Windows symlinks have zero file size, call readlink to determine
|
||||||
* the length of the path pointed to, which we expect everywhere else
|
* the length of the path pointed to, which we expect everywhere else
|
||||||
*/
|
*/
|
||||||
if (fMode & S_IFLNK) {
|
if (S_ISLNK(fMode)) {
|
||||||
char target[GIT_WIN_PATH];
|
char target[GIT_WIN_PATH];
|
||||||
int readlink_result;
|
int readlink_result;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user