Fix File::GetPermissions() to only return the permission bits.

llvm-svn: 195482
This commit is contained in:
Greg Clayton 2013-11-22 18:46:55 +00:00
parent 6d4130e7d9
commit c029382690
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ File::GetPermissions (const char *path, Error &error)
else
{
error.Clear();
return file_stats.st_mode; // All bits from lldb_private::File::Permissions match those in POSIX mode bits
return file_stats.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
}
}
else
@ -311,7 +311,7 @@ File::GetPermissions(Error &error) const
else
{
error.Clear();
return file_stats.st_mode; // All bits from lldb_private::File::Permissions match those in POSIX mode bits
return file_stats.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
}
}
else