]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When we have a command returned by zfs_nextboot() that is longer
authorglebius <glebius@FreeBSD.org>
Thu, 20 Aug 2020 20:31:47 +0000 (20:31 +0000)
committerglebius <glebius@FreeBSD.org>
Thu, 20 Aug 2020 20:31:47 +0000 (20:31 +0000)
commitdab456acba9feae32e1c7ebad2d92e96338954d6
tree652518419e4e49fb72df7878abe5e722ed7b410a
parent6ce75314fb8b842ff397a24ccd767eb9d0617594
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