mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
FileSystem: Correctly use lstat() on Linux
This commit is contained in:
parent
3a08ad1840
commit
81295c8a7d
|
@ -2432,7 +2432,7 @@ bool FileSystem::DirectoryExists(const char* path)
|
||||||
bool FileSystem::IsRealDirectory(const char* path)
|
bool FileSystem::IsRealDirectory(const char* path)
|
||||||
{
|
{
|
||||||
struct stat sysStatData;
|
struct stat sysStatData;
|
||||||
if (stat(path, &sysStatData) < 0)
|
if (lstat(path, &sysStatData) < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return (S_ISDIR(sysStatData.st_mode) && !S_ISLNK(sysStatData.st_mode));
|
return (S_ISDIR(sysStatData.st_mode) && !S_ISLNK(sysStatData.st_mode));
|
||||||
|
|
Loading…
Reference in a new issue