Bug 2628 - Linux: FAT/FAT32 drives can wrongly have projects saved to them

This commit is contained in:
Leland Lucius 2021-01-12 02:25:15 -06:00
parent e093ed1846
commit c13407d692
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ bool FileNames::IsOnFATFileSystem(const FilePath &path)
bool FileNames::IsOnFATFileSystem(const FilePath &path)
{
struct statfs fs;
if (statfs(path.c_str(), &fs))
if (statfs(wxPathOnly(path).c_str(), &fs))
// Error from statfs
return false;
return fs.f_type == MSDOS_SUPER_MAGIC;