File pacemaker-crm_shadow-display.patch of Package pacemaker.3577
commit c41e203891ef6a52f67a99eaaf141b07008b28dc
Author: Kristoffer Grönlund <krig@koru.se>
Date: Fri Feb 12 08:49:55 2016 +0100
Fix: crm_shadow: fix broken --display command
The command line flag for crm_shadow --display is 'p', but the command
section looks for 'P', so the crm_shadow --display command never
actually does anything.
This commit fixes the typo.
diff --git a/tools/cib_shadow.c b/tools/cib_shadow.c
index 845486c..2fe66f1 100644
--- a/tools/cib_shadow.c
+++ b/tools/cib_shadow.c
@@ -409,7 +409,7 @@ main(int argc, char **argv)
rc = 0;
goto done;
- } else if (command == 'P') {
+ } else if (command == 'p') {
/* display the current contents */
char *output_s = NULL;
xmlNode *output = filename2xml(shadow_file);