diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c index 339d43131..f533eaa5e 100644 --- a/src/win32/posix_w32.c +++ b/src/win32/posix_w32.c @@ -103,7 +103,7 @@ static int do_lstat( /* Windows symlinks have zero file size, call readlink to determine * 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]; int readlink_result;