HomeClusterLabs Projects

Low: tools: Fix overflow in crm_simulate --repeat

Description

Low: tools: Fix overflow in crm_simulate --repeat

Due to the way glib parses integer options and casts them to assign them
to variables, a value of --repeat="-1" wrapped around to 2^32 - 1,
causing a very long loop. Instead, we default it to 0 if a negative
value is passed in.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jan 25 2025, 12:42 AM
Parents
rP9f1edd8bacf3: Refactor: libpacemaker: Use scandir() filter in pcmk__profile_dir()
Branches
Unknown
Tags
Unknown