diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-21 01:48:59 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-21 13:45:50 -0300 |
commit | 7cb7d86dc4ae9b7305c46277cc26ae4d9c645588 (patch) | |
tree | b6192d75359251209f2cdd322561417c80f538bf | |
parent | 94700f7c18c90455f9b627b69f93c94f773a972e (diff) | |
download | luafilesystem-7cb7d86dc4ae9b7305c46277cc26ae4d9c645588.tar.gz luafilesystem-7cb7d86dc4ae9b7305c46277cc26ae4d9c645588.tar.bz2 luafilesystem-7cb7d86dc4ae9b7305c46277cc26ae4d9c645588.zip |
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) | |||
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; |