mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-08 09:36:24 +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)
|
bool FileNames::IsOnFATFileSystem(const FilePath &path)
|
||||||
{
|
{
|
||||||
struct statfs fs;
|
struct statfs fs;
|
||||||
if (statfs(path.c_str(), &fs))
|
if (statfs(wxPathOnly(path).c_str(), &fs))
|
||||||
// Error from statfs
|
// Error from statfs
|
||||||
return false;
|
return false;
|
||||||
return fs.f_type == MSDOS_SUPER_MAGIC;
|
return fs.f_type == MSDOS_SUPER_MAGIC;
|
||||||
|
|||||||
Reference in New Issue
Block a user