From 0178268901b59bbec749885adf16d5e16cbf44fc Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 27 Apr 2009 13:20:47 -0400 Subject: BUG: Fix required permissions check for dir copy While copying a directory the destination must have owner rwx permissions. This corrects our check. --- Source/cmFileCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12