We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 658589f + f26ef97 commit 12980c3Copy full SHA for 12980c3
compat/mingw.c
@@ -757,17 +757,7 @@ int mingw_stat(const char *file_name, struct stat *buf)
757
HANDLE hnd;
758
int result;
759
760
- /* if symlinks are disabled, use lstat() (without following links) */
761
- if (!has_symlinks) {
762
- result = lstat(file_name, buf);
763
- if (!result && S_ISLNK(buf->st_mode)) {
764
- errno = ELOOP;
765
- return -1;
766
- }
767
- return result;
768
769
-
770
- /* otherwise just open the file and let Windows resolve the links */
+ /* open the file and let Windows resolve the links */
771
if (xutftowcs_long_path(wfile_name, file_name) < 0)
772
return -1;
773
hnd = CreateFileW(wfile_name, 0,
0 commit comments