[PATCH] kenv issue when there is no static environment

Jayachandran C. jchandra at freebsd.org
Mon Mar 4 07:35:26 UTC 2013


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kenv-fix.patch
Type: application/octet-stream
Size: 1252 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130304/dd49fb32/attachment.obj>


More information about the freebsd-current mailing list