[PATCH] kenv issue when there is no static environment

From: Jayachandran C. <jchandra_at_freebsd.org>
Date: Mon, 4 Mar 2013 13:05:24 +0530
Planning to check the attached patch later this week, please let me
know if there any objections.

----

In case where there are no static kernel environment entries, the
function init_dynamic_kenv() adds an incorrect entry at position 0 of
the dynamic kernel environment. This entry is usually empty and
confuses kenv(1). The entries added later by kenv(1) does not seem to
be added, even though they are.

The environment passed to the kernel can be empty when it is loaded
from a bootloader other than loader(8).


JC.

Received on Mon Mar 04 2013 - 06:35:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:35 UTC