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:
parent
9384790d04
commit
03d8b8ad57
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue