The FreeBSD version of sha256sum
takes different arguments than the GNU version.
The sha256_check
function in contrib/install_db4.sh
has code specific to FreeBSD, however it doesn’t get reached because while the sha256sum
command does exist on FreeBSD, it is incompatible and results in an error:
0sha256sum: option requires an argument -- c
1usage: sha256sum [-pqrtx] [-c file] [-s string] [files ...]
This change moves the FreeBSD-specific code before the check for the sha256sum
command.
Fixes: #26774