HomeClusterLabs Projects
Diffusion SBD 515bae0744e8

Build: configure: validate configure options for paths

Description

Build: configure: validate configure options for paths

Previously we expanded path variables like:

eval prefix="`eval echo ${prefix}`"

Now, define a helper function expand_path_option for this, to improve
readability and isolate the eval madness. The helper can also take the
option default to reduce code duplication.

Additionally, expand_path_option requires the expanded value to be a full
path (i.e. start with a /), to perform some validation on user-supplied values.

Details

Provenance
kgaillotAuthored on Oct 13 2021, 10:04 AM
gao-yanCommitted on Oct 13 2021, 11:15 AM
Parents
rS5067f83753c5: Doc: man: refer to the modern run state directory `/run` if appropriate
Branches
Unknown
Tags
Unknown

Event Timeline