summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-04-27 17:20:47 (GMT)
committerBrad King <brad.king@kitware.com>2009-04-27 17:20:47 (GMT)
commit0178268901b59bbec749885adf16d5e16cbf44fc (patch)
treee3ff6aaf28d6084112af2ea1528e5aabb6b67806 /Source
parente128583cb4706a4582003c1ca7c9d4645ac36553 (diff)
downloadCMake-0178268901b59bbec749885adf16d5e16cbf44fc.zip
CMake-0178268901b59bbec749885adf16d5e16cbf44fc.tar.gz
CMake-0178268901b59bbec749885adf16d5e16cbf44fc.tar.bz2
BUG: Fix required permissions check for dir copy
While copying a directory the destination must have owner rwx permissions. This corrects our check.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 1808027..2a98a10 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)
+ if(permissions & required_permissions == required_permissions)
{
permissions_before = permissions;
}