HomeFreeBSD

Fix offset calculation in variable substitution

Description

Fix offset calculation in variable substitution
in jail.conf. The following did not work correctly:

A="A_${B}_C_${D}"
B="BBBBB"
D="DDDD_${E}_FFFFF"
E="EEEEE"

PR: 189139
Reviewed by: jamie
Differential Revision: https://reviews.freebsd.org/D3018

Details

Provenance
hrsAuthored on
Reviewer
jamie
Differential Revision
D3018: Fix recursive variable substitution in jail.conf
Parents
rS285260: Since the case where secflavor < 0 indicates the security flavor is
Branches
Unknown
Tags
Unknown