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)
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user