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
  • Loading branch information
valpackett committed Aug 11, 2024
1 parent 7a8d05b commit a1defa8
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);
}

Check warning on line 59 in tools/build/cross-build/fake_sysctl.c

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line

0 comments on commit a1defa8

Please sign in to comment.