[icinga-checkins] icinga.org: icinga2/master: cluster: Fix default privileges.

git at icinga.org git at icinga.org
Tue Sep 17 15:57:12 CEST 2013


Module: icinga2
Branch: master
Commit: 64cc1377098911c5fc7522734b1338683889c3c9
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=64cc1377098911c5fc7522734b1338683889c3c9

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Sep 17 15:56:54 2013 +0200

cluster: Fix default privileges.

---

 components/cluster/clustercomponent.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp
index fc49648..0731963 100644
--- a/components/cluster/clustercomponent.cpp
+++ b/components/cluster/clustercomponent.cpp
@@ -106,7 +106,7 @@ void ClusterComponent::Start(void)
 						privs |= domainObj->GetPrivileges(endpoint->GetName());
 					}
 				} else {
-					privs = ~0;
+					privs = INT_MAX;
 				}
 
 				Log(LogDebug, "cluster", "Privileges for object '" + object->GetName() + "' of type '" + object->GetType()->GetName() + "' for instance '" + endpoint->GetName() + "' are '" + Convert::ToString(privs) + "'");





More information about the icinga-checkins mailing list