From ff9df88396c79d16f560308ce1b874682868ba8f Mon Sep 17 00:00:00 2001 From: Jameson Miller Date: Fri, 8 Feb 2013 14:27:21 -0500 Subject: [PATCH] Fix Windows symlinks --- src/win32/posix_w32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;