HomeClusterLabs Projects

Fix: tools: Use a copy of argv in stonith_admin.

Description

Fix: tools: Use a copy of argv in stonith_admin.

g_option_context_parse will consume items in argv as it processes them,
which is bad because we need that array for pcmkoutput_new and
crm_log_args. We also need to do command line processing before being
able to call pcmk
output_new.

Thus, just copy argv and free the copy when we exit.

Details

Provenance
clumensAuthored on Jul 2 2019, 5:11 PM
Parents
rP86b02244bae3: Fix: build: Adapt man page generation for glib.
Branches
Unknown
Tags
Unknown

Event Timeline