summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJameson Miller <jamill@microsoft.com>2013-02-08 14:27:21 -0500
committerJameson Miller <jamill@microsoft.com>2013-02-08 14:28:49 -0500
commitff9df88396c79d16f560308ce1b874682868ba8f (patch)
tree7dd58d5f6c9b02f34825bbb01a25843bc5eb4c8c
parentf3e492107a776b2b6b2d1ee992d7b48a7a398575 (diff)
downloadlibgit2-ff9df88396c79d16f560308ce1b874682868ba8f.tar.gz
Fix Windows symlinks
-rw-r--r--src/win32/posix_w32.c2
1 files changed, 1 insertions, 1 deletions
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;