git: 67082f077f39 - main - bhyveload: fix non -l use
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Jan 2024 01:37:31 UTC
The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=67082f077f39d9c7b7bd561c14622e6f3ef23681 commit 67082f077f39d9c7b7bd561c14622e6f3ef23681 Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2024-01-04 01:36:06 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2024-01-04 01:36:06 +0000 bhyveload: fix non -l use explicit_loader_fd should have been initialized to -1, not 0, but my last round of testing was only with -l... Fixes: bf7c4fcbbb ("bhyveload: hold /boot and do relative [...]") Pointy hat: kevans --- usr.sbin/bhyveload/bhyveload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyveload/bhyveload.c b/usr.sbin/bhyveload/bhyveload.c index 124c1141bffa..d4f930e8cc76 100644 --- a/usr.sbin/bhyveload/bhyveload.c +++ b/usr.sbin/bhyveload/bhyveload.c @@ -97,7 +97,7 @@ static int hostbase_fd = -1; static void *loader_hdl; static char *loader; -static int explicit_loader_fd; +static int explicit_loader_fd = -1; static jmp_buf jb; static char *vmname, *progname;