Fix Windows symlinks

This commit is contained in:
Jameson Miller 2013-02-08 14:27:21 -05:00
parent f3e492107a
commit ff9df88396

View File

@ -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;