vmd(8): fix specifying boot image in vm.conf
authordv <dv@openbsd.org>
Fri, 28 Apr 2023 21:22:20 +0000 (21:22 +0000)
committerdv <dv@openbsd.org>
Fri, 28 Apr 2023 21:22:20 +0000 (21:22 +0000)
commit3ac1122da640464f1b51ce01b3cd714e2ecb68e5
treec02dc0735c6b17f6ce79f2ff49bfb4a87977ae14
parent18be3cce305a9a9e4ea176ee8821d4c05f94a1b6
vmd(8): fix specifying boot image in vm.conf

Previous change to allow overriding changed the way we parsed and
stored the boot image path. The lifetime of the path was...much too
short. Heap allocate the kernel path.

Found by Mischa Peters.

ok mlarkin@
usr.sbin/vmd/parse.y