Skip to content

Commit

Permalink
cross-build: fix fake_sysctl/tzsetup
Browse files Browse the repository at this point in the history
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: freebsd/freebsd-src#1376
  • Loading branch information
valpackett authored and bsdjhb committed Dec 4, 2024
2 parents dd40a30 + 7b9c9f8 commit 85ea7e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/build/cross-build/fake_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 85ea7e9

Please sign in to comment.