mirror_corosync/tools
Fabian Grünbichler ef2569d323 cfgtool: Fix link status display
instead of the nodeid, this displayed arbitrary values (usually '1')
from other cmap keys under nodelist.node.XX.

sscanf returns the number of conversions even on mismatch, e.g. it also
returns 1 for

nodelist.node.2.quorum_votes
nodelist.node.2.ring0_addr
nodelist.node.2.name
...

instead of just

nodelist.node.2.nodeid

which leads to the value of (at least) quorum_votes being stored in
nodeid_list in addition to the actual nodeid.

storing the returned int in a cs_error_t enum also potentially masks
errors, so just compare the result with the expectation directly.

Fixes: c0d14485c3

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2019-05-30 15:23:37 +02:00
..
.gitignore Remove corosync-fplay 2012-06-05 12:05:15 +02:00
corosync-blackbox.sh blackbox: Quote subshell result properly 2018-03-02 17:29:16 +01:00
corosync-cfgtool.c cfgtool: Fix link status display 2019-05-30 15:23:37 +02:00
corosync-cmapctl.c Add option for quiet operation to corosync-cmapctl 2018-08-09 10:05:48 +02:00
corosync-cpgtool.c totemsrp: Revert totemsrp_get_ifaces() changes 2017-11-30 16:59:05 +01:00
corosync-keygen.c keygen: Reflect change in knet 2019-04-11 15:14:06 +02:00
corosync-notifyd.c notifyd: Delete registered tracking keys 2018-11-16 11:47:29 +01:00
corosync-notifyd.sysconfig.example Improve corosync-notifyd example 2013-04-16 17:32:05 +02:00
corosync-quorumtool.c quorumtool: Fix exit status codes 2019-02-15 17:12:59 +01:00
corosync-xmlproc.sh build: make path to bash configurable at build time 2012-08-28 15:14:49 +02:00
Makefile.am build: Use the SED variable provided by configure 2019-02-06 16:04:55 +01:00