]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When we have a command returned by zfs_nextboot() that is longer
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 20 Aug 2020 20:31:47 +0000 (20:31 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 05:24:27 +0000 (00:24 -0500)
commit4d997b340dd7ee561b2f44bbcef3c532108640e6
tree2a4e4501d6871b764441bdca38fca5c66aa6e88f
parent53fdb802567df401b333fa0aa898908ccabaca93
When we have a command returned by zfs_nextboot() that is longer
than command in the loader.conf, the latter needs to be nul terminated,
otherwise garbage trailer left from zfs_nextboot() will be passed to
parse_cmd() together with loader.conf command.

While here, reset cmd to empty string if read() returns error.

(cherry picked from commit c7dd069c70d465298f14553d981bfe5e2ffd0459)
stand/i386/zfsboot/zfsboot.c