HomeClusterLabs Projects

ocf-shellfuncs: ocf_run: avoid shell glob expansion of log messages

Description

ocf-shellfuncs: ocf_run: avoid shell glob expansion of log messages

for some reason, "output" of ocf_run'd commands was "word wrapped" using
output=echo $output.

Which would shell glob expand any *? in "$output", potentially causing
misleading (at best) log messages.
Instead, use
output=echo "$output" | tr -s ' \t\r\n' ' '

Details

Provenance
Lars Ellenberg <lars.ellenberg@linbit.com>Authored on Feb 24 2017, 10:59 AM
Parents
rR150fb85f2a44: Merge pull request #926 from oalbrigt/4.0.1
Branches
Unknown
Tags
Unknown

Event Timeline