forked from OSchip/llvm-project
Fix typo that breaks FileSystem::IsLocal
llvm-svn: 230312
This commit is contained in:
parent
294aeb9a40
commit
f7839220ee
|
@ -203,7 +203,7 @@ FileSystem::IsLocal(const FileSpec &spec)
|
|||
{
|
||||
struct statfs statfs_info;
|
||||
std::string path (spec.GetPath());
|
||||
if (statfs(path.c_str(), &statfs_info) != 0)
|
||||
if (statfs(path.c_str(), &statfs_info) == 0)
|
||||
return ::IsLocal(statfs_info);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue