Skip to content

Commit

Permalink
FileSystem: Correctly use lstat() on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 6, 2024
1 parent 3a08ad1 commit 81295c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 81295c8

Please sign in to comment.