From ab377bf1ec91de60774ca10f9b8162187309aa6d Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 20 Apr 2013 11:30:42 +0200 Subject: [PATCH] Fix symlink directories on POSIX. --- file_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file_path.c b/file_path.c index 50eaeed1a8..cdd4be0a89 100644 --- a/file_path.c +++ b/file_path.c @@ -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;