From c02938269026409be8e619548286d7d8a3876885 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 22 Nov 2013 18:46:55 +0000 Subject: [PATCH] Fix File::GetPermissions() to only return the permission bits. llvm-svn: 195482 --- lldb/source/Host/common/File.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index c8dff198cb79..91fc8bd6b7be 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -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