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.

(cherry picked from commit c7dd069c70d465298f14553d981bfe5e2ffd0459)

Details

Provenance
glebiusAuthored on Aug 20 2020, 8:31 PM
kevansCommitted on Oct 8 2021, 5:24 AM
Parents
rG53fdb802567d: libsa: smbios: Parse the chassis type and export it as smbios.chassis.type
Branches
Unknown
Tags
Unknown