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.
This commit is contained in:
Brad King 2009-04-28 08:19:44 -04:00
parent 9384790d04
commit 03d8b8ad57
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}