summaryrefslogtreecommitdiff
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-04-28 08:19:44 -0400
committerBrad King <brad.king@kitware.com>2009-04-28 08:19:44 -0400
commit03d8b8ad57d695b2de1fbec96238ff3050831904 (patch)
tree5b309ddefb3c1b3de8716142a9699b8a0f19810c /Source/cmFileCommand.cxx
parent9384790d048f6f2b938683ef02747b4f3550968d (diff)
downloadcmake-03d8b8ad57d695b2de1fbec96238ff3050831904.tar.gz
BUG: Fix required permissions check again
While copying a directory the destination must have owner rwx permissions. This corrects our check, this time with correct operator precedence using parenthesis.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 25cbe80a8e..f2565daa83 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1214,7 +1214,7 @@ bool cmFileInstaller::InstallDirectory(const char* source,
// permissions temporarily during file installation.
mode_t permissions_before = 0;
mode_t permissions_after = 0;
- if(permissions & required_permissions == required_permissions)
+ if((permissions & required_permissions) == required_permissions)
{
permissions_before = permissions;
}