]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
md5: Create md5sum, etc compatible programs
authorWarner Losh <imp@FreeBSD.org>
Wed, 19 May 2021 17:26:20 +0000 (11:26 -0600)
committerStefan Eßer <se@FreeBSD.org>
Tue, 6 Jul 2021 15:37:24 +0000 (17:37 +0200)
commit5f13ee9179e15702129d5ea330c599ae9a3b871f
tree84e87fb5e929b5c76389a4f9b097c0418ebe96e1
parent546cc4ae8586dcf052c9d8b17a1bc1d09d87b3b7
md5: Create md5sum, etc compatible programs

On Linux, there's a similar set of programs to ours, but that end in the
letters 'sum'. These act basically like FreeBSD versions run with the -r
option. Add code so that when the program ends in 'sum' you get the
linux -r behavior. This is enough to make most things that use sha*sum
work correctly (the -c / --check options, as well as the long args are
not implemented). When running with the -sum programs, ignore -t instead
of running internal speed tests and make -c an error.

Reviewed by: sef, and kp and allanjude (earlier version)
Relnotes: yes
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30309
sbin/md5/Makefile
sbin/md5/md5.1
sbin/md5/md5.c