From: Gunnar Beutner Date: Tue, 17 Sep 2013 13:56:54 +0000 (+0200) Subject: cluster: Fix default privileges. X-Git-Tag: v0.0.3~490 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64cc1377098911c5fc7522734b1338683889c3c9;p=icinga2 cluster: Fix default privileges. --- diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index fc496487b..07319631d 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) + "'");