aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 65a708f..d1bc0e6 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -192,6 +192,9 @@ int lfs_win32_lstat(const char *path, STAT_STRUCT *buffer)
192{ 192{
193 WIN32_FILE_ATTRIBUTE_DATA win32buffer; 193 WIN32_FILE_ATTRIBUTE_DATA win32buffer;
194 if (GetFileAttributesEx(path, GetFileExInfoStandard, &win32buffer)) { 194 if (GetFileAttributesEx(path, GetFileExInfoStandard, &win32buffer)) {
195 if (!(win32buffer.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) {
196 return STAT_FUNC(path, buffer);
197 }
195 buffer->st_mode = _S_IFLNK; 198 buffer->st_mode = _S_IFLNK;
196 buffer->st_dev = 0; 199 buffer->st_dev = 0;
197 buffer->st_ino = 0; 200 buffer->st_ino = 0;