From 81295c8a7d88bb70d782c94361a5a100f446a9df Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 6 Aug 2024 15:52:26 +1000 Subject: [PATCH] FileSystem: Correctly use lstat() on Linux --- src/common/file_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/file_system.cpp b/src/common/file_system.cpp index 43b19d566..61ed81b49 100644 --- a/src/common/file_system.cpp +++ b/src/common/file_system.cpp @@ -2432,7 +2432,7 @@ bool FileSystem::DirectoryExists(const char* path) bool FileSystem::IsRealDirectory(const char* path) { struct stat sysStatData; - if (stat(path, &sysStatData) < 0) + if (lstat(path, &sysStatData) < 0) return false; return (S_ISDIR(sysStatData.st_mode) && !S_ISLNK(sysStatData.st_mode));