Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2024 18:35:28 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7b9c9f8004b1 - main - cross-build: fix fake_sysctl/tzsetup
Message-ID:  <202409061835.486IZSvc011516@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=7b9c9f8004b17cda071537c9b2fdd259eec27d2a

commit 7b9c9f8004b17cda071537c9b2fdd259eec27d2a
Author:     Val Packett <val@packett.cool>
AuthorDate: 2024-08-11 02:11:25 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-09-06 18:34:32 +0000

    cross-build: fix fake_sysctl/tzsetup
    
    The error was always returned, even after handling the sysctl, breaking
    installworld under Linux.
    
    Sponsored by:           https://www.patreon.com/valpackett
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1376
---
 tools/build/cross-build/fake_sysctl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/build/cross-build/fake_sysctl.c b/tools/build/cross-build/fake_sysctl.c
index 4f1b271f3858..c4e40ebb9e72 100644
--- a/tools/build/cross-build/fake_sysctl.c
+++ b/tools/build/cross-build/fake_sysctl.c
@@ -53,6 +53,7 @@ __freebsd_sysctlbyname(const char *name, void *oldp, size_t *oldlenp,
 			errx(EX_USAGE, "kern.vm_guest is read-only");
 		strlcpy(oldp, "none", *oldlenp);
 		*oldlenp = strlen("none");
+		return (0);
 	}
 	errx(EX_USAGE, "fatal: unknown sysctl %s\n", name);
 }



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