Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
pacemaker
pacemaker-cpg-group-name.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-cpg-group-name.patch of Package pacemaker
commit ba15849215e69dd9d1a179ebc4bc9d546dae1308 Author: Andrew Beekhof <andrew@beekhof.net> Date: Mon Feb 29 13:57:29 2016 +1100 Fix: cpg: Ensure group name is never unset diff --git a/lib/cluster/cpg.c b/lib/cluster/cpg.c index 46edb7e..551d05b 100644 --- a/lib/cluster/cpg.c +++ b/lib/cluster/cpg.c @@ -456,9 +456,9 @@ cluster_connect_cpg(crm_cluster_t *cluster) cluster->group.value[0] = 0; /* group.value is char[128] */ - strncpy(cluster->group.value, crm_system_name, 127); + strncpy(cluster->group.value, crm_system_name?crm_system_name:"unknown", 127); cluster->group.value[127] = 0; - cluster->group.length = 1 + QB_MIN(127, strlen(crm_system_name)); + cluster->group.length = 1 + QB_MIN(127, strlen(cluster->group.value)); cs_repeat(retries, 30, rc = cpg_initialize(&handle, &cpg_callbacks)); if (rc != CS_OK) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor