aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a5e182b449..012a9a37a5 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4956,6 +4956,9 @@ fileattr_to_unixmode(DWORD attr, const WCHAR *path)
if (attr & FILE_ATTRIBUTE_DIRECTORY) {
mode |= S_IFDIR | S_IEXEC;
}
+ else if (attr & FILE_ATTRIBUTE_REPARSE_POINT) {
+ mode |= S_IFLNK;
+ }
else {
mode |= S_IFREG;
}