diff options
author | jchandra <jchandra@FreeBSD.org> | 2013-04-12 15:58:53 +0000 |
---|---|---|
committer | jchandra <jchandra@FreeBSD.org> | 2013-04-12 15:58:53 +0000 |
commit | b9f386539e01f525540ae8c8b1d8ca0de681c2af (patch) | |
tree | 7ef4415a544c21eec74e4f0f00ef181393315dfe /sys/sparc64 | |
parent | 8b2029265883067bf67b0fa209dd4f6e47c48e3f (diff) | |
download | FreeBSD-src-b9f386539e01f525540ae8c8b1d8ca0de681c2af.zip FreeBSD-src-b9f386539e01f525540ae8c8b1d8ca0de681c2af.tar.gz |
Fix kenv behavior when there is no static environment
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 in turn causes kenv(1) to print
and empty list even though there are dynamic entries added later.
Fix this by checking env_pos in init_dynamic_kenv() and adding dynamic
entries only if there are static entries.
Diffstat (limited to 'sys/sparc64')
0 files changed, 0 insertions, 0 deletions