Fix symlink directories on POSIX.

This commit is contained in:
Themaister 2013-04-20 11:30:42 +02:00
parent be01a0ea59
commit ab377bf1ec

View File

@ -279,7 +279,8 @@ static bool dirent_is_directory(const char *path, const struct dirent *entry)
#elif defined(DT_DIR)
if (entry->d_type == DT_DIR)
return true;
else if (entry->d_type == DT_UNKNOWN) // This can happen on certain file systems.
else if (entry->d_type == DT_UNKNOWN // This can happen on certain file systems.
|| entry->d_type == DT_LNK)
return path_is_directory(path);
else
return false;