]> 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)
committerGleb Smirnoff <glebius@FreeBSD.org>
Thu, 20 Aug 2020 20:31:47 +0000 (20:31 +0000)
commitc7dd069c70d465298f14553d981bfe5e2ffd0459
tree652518419e4e49fb72df7878abe5e722ed7b410a
parente627909d041987da4c6c14ca71af108e1a63d003
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
stand/i386/zfsboot/zfsboot.c