mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-07 07:04:36 +01:00
Fix #6803: Symlinks to directories are not descended by FileScanner
This commit is contained in:
committed by
Michał Janiszewski
parent
aa23370f2d
commit
863a71c984
@@ -325,7 +325,7 @@ private:
|
||||
{
|
||||
DirectoryChild result;
|
||||
result.Name = std::string(node->d_name);
|
||||
if (node->d_type & DT_DIR)
|
||||
if (node->d_type == DT_DIR)
|
||||
{
|
||||
result.Type = DIRECTORY_CHILD_TYPE::DC_DIRECTORY;
|
||||
}
|
||||
@@ -345,6 +345,11 @@ private:
|
||||
{
|
||||
result.Size = statInfo.st_size;
|
||||
result.LastModified = statInfo.st_mtime;
|
||||
|
||||
if (S_ISDIR(statInfo.st_mode))
|
||||
{
|
||||
result.Type = DIRECTORY_CHILD_TYPE::DC_DIRECTORY;
|
||||
}
|
||||
}
|
||||
|
||||
Memory::Free(path);
|
||||
|
||||
Reference in New Issue
Block a user