diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-21 07:48:59 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-21 19:45:50 +0300 |
commit | 7cb7d86dc4ae9b7305c46277cc26ae4d9c645588 (patch) | |
tree | b6192d75359251209f2cdd322561417c80f538bf | |
parent | 94700f7c18c90455f9b627b69f93c94f773a972e (diff) |
win32 lstat: if it's not a link, just do stat
-rw-r--r-- | src/lfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -192,6 +192,9 @@ int lfs_win32_lstat(const char *path, STAT_STRUCT *buffer) { WIN32_FILE_ATTRIBUTE_DATA win32buffer; if (GetFileAttributesEx(path, GetFileExInfoStandard, &win32buffer)) { + if (!(win32buffer.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) { + return STAT_FUNC(path, buffer); + } buffer->st_mode = _S_IFLNK; buffer->st_dev = 0; buffer->st_ino = 0; |