Commit ff9df88396c79d16f560308ce1b874682868ba8f

Jameson Miller 2013-02-08T14:27:21

Fix Windows symlinks

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index 339d431..f533eaa 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;