HomeFreeBSD

Fix an off-by-one in dt_opt_setenv().

Description

Fix an off-by-one in dt_opt_setenv().

The bug would cause incorrect behaviour when attempting to override
an already set environment variable with -x setenv, as long as the
variable is not the last one in the array.

Reported by: Samuel Lepetit <slepetit@apple.com>
MFC after: 2 weeks

Details

Provenance
markjAuthored on
Parents
rS327793: MFC r327289:
Branches
Unknown
Tags
Unknown