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