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
This commit is contained in:
Val Packett 2024-08-10 23:11:25 -03:00 committed by Warner Losh
parent 9cb98ab7ce
commit 7b9c9f8004

View file

@ -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);
}