Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2024 01:37:31 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 67082f077f39 - main - bhyveload: fix non -l use
Message-ID:  <202401040137.4041bVai024611@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401040137.4041bVai024611>