freebsd-dev/cddl/contrib
Mark Johnston ff9ebfc4b6 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
2018-01-10 21:37:11 +00:00
..
opensolaris Fix an off-by-one in dt_opt_setenv(). 2018-01-10 21:37:11 +00:00