HomeFreeBSD

When we have a command returned by zfs_nextboot() that is longer

Description

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.

Reviewed by: tsoome

Details

Provenance
glebiusAuthored on
Parents
rS364440: Fix a typo in r364438.
Branches
Unknown
Tags
Unknown