Revert "Merge pull request #3012 from Patater/dev/jp-bennett/development-2.16"

This reverts commit 7550e857bf, reversing
changes made to d0c2575324.

stat() will never return S_IFLNK as the file type, as stat()
explicitly follows symlinks.

Fixes #3005.
This commit is contained in:
Janos Follath 2020-02-04 14:42:15 +00:00
parent 82ebf511e9
commit cabf0eed66
2 changed files with 1 additions and 3 deletions

View file

@ -1366,7 +1366,7 @@ cleanup:
goto cleanup;
}
if( !( S_ISREG( sb.st_mode ) || S_ISLNK( sb.st_mode ) ) )
if( !S_ISREG( sb.st_mode ) )
continue;
// Ignore parse errors