diff options
author | Brad King <brad.king@kitware.com> | 2009-04-28 08:19:44 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-04-28 08:19:44 -0400 |
commit | 03d8b8ad57d695b2de1fbec96238ff3050831904 (patch) | |
tree | 5b309ddefb3c1b3de8716142a9699b8a0f19810c /Source/cmFileCommand.cxx | |
parent | 9384790d048f6f2b938683ef02747b4f3550968d (diff) | |
download | cmake-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.cxx | 2 |
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; } |