HomeClusterLabs Projects

Low: tools: treat invalid error codes as unknown in crm_error

Description

Low: tools: treat invalid error codes as unknown in crm_error

Previously, crm_error used crm_atoi() (aka crm_parse_int()) to parse the
command-line arguments for error codes. This meant that if someone gave invalid
text, it would be mapped to error code -1 (e.g. "Operation not permitted" in
legacy codes).

Now, map it to INT_MIN, which is nearly certain to map to "unknown error".

Details

Provenance
kgaillotAuthored on Mar 19 2021, 6:51 PM
Parents
rP79ece6e59265: Fix: scheduler: don't treat invalid duration fields as -1
Branches
Unknown
Tags
Unknown

Event Timeline