enumerator: Fall back to lstat() if stat() fails when enumerating dirs/files

This happens e.g. if the path is for an invalid symlink.
This commit is contained in:
Tobias Brunner
2020-02-13 11:54:19 +01:00
parent fdce492ed0
commit 19b2f870e2
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -222,6 +222,11 @@ static inline int setenv(const char *name, const char *value, int overwrite)
return 0;
}
/**
* stat(2) behaves like lstat(2) for symbolic links on Windows
*/
#define lstat stat
/**
* Lazy binding, ignored on Windows
*/