mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-19 15:44:20 +01:00
Bug 2628 - Linux: FAT/FAT32 drives can wrongly have projects saved to them
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user