On some systems readdir() may only return DT_UNKNOWN for the dirent type. In such a case we need to do a secondary lookup e.g. with lstat to figure out the real time (for our purposes we're only interested in whether it's a directory or not).
aeb998c core: Add support for secondary dirent type lookup
src/adapter.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
Upstream: git.kernel.org