mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 05:36:10 +00:00
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:
parent
9cb98ab7ce
commit
7b9c9f8004
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue