#
e8e2ab3c |
| 19-Jul-2024 |
John Baldwin <jhb@FreeBSD.org> |
md5: Consistently use item count as the first argument to calloc
Reported by: GCC 14 -Wcalloc-transposed-args Reviewed by: rlibby Differential Revision: https://reviews.freebsd.org/D46009
|
Revision tags: release/14.1.0, release/13.3.0 |
|
#
702f133f |
| 20-Feb-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Untabify declarations.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: imp, allanjude, markj Differential Revision: https://reviews.freebsd.org/D43991
|
#
c05533d9 |
| 20-Feb-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Fix GNU check mode.
Fixes: 9b20849bc5f1b500f2de7aeca77f0e6556069bbb MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: imp, allanjude, markj Differential Revision: https://reviews.freebs
md5: Fix GNU check mode.
Fixes: 9b20849bc5f1b500f2de7aeca77f0e6556069bbb MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: imp, allanjude, markj Differential Revision: https://reviews.freebsd.org/D43990
show more ...
|
#
4db7ca24 |
| 20-Feb-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Fix Perl mode long options.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: imp, allanjude, markj Differential Revision: https://reviews.freebsd.org/D43989
|
#
17d5b027 |
| 16-Feb-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Clean up input stream rights.
Keep it simple, caph_limit_stdio() and fileargs_fopen() already take care of everything for us.
MFC after: 1 week Reviewed by: markj, jhb, emaste Differential Rev
md5: Clean up input stream rights.
Keep it simple, caph_limit_stdio() and fileargs_fopen() already take care of everything for us.
MFC after: 1 week Reviewed by: markj, jhb, emaste Differential Revision: https://reviews.freebsd.org/D43897
show more ...
|
#
5b44edb4 |
| 16-Feb-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Ignore files in string and passthrough mode.
MFC after: 1 week Reviewed by: allanjude, markj Differential Revision: https://reviews.freebsd.org/D43871
|
#
72ee91fe |
| 16-Feb-2024 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Accept "-" as alias for stdin.
(based on a patch by jhb)
MFC after: 1 week PR: 276915 Reported by: Hannes Hauswedell <h2+fbsdports@fsfe.org> Reviewed by: allanjude, markj, jhb, emaste Differe
md5: Accept "-" as alias for stdin.
(based on a patch by jhb)
MFC after: 1 week PR: 276915 Reported by: Hannes Hauswedell <h2+fbsdports@fsfe.org> Reviewed by: allanjude, markj, jhb, emaste Differential Revision: https://reviews.freebsd.org/D43870
show more ...
|
#
9b20849b |
| 03-Jan-2024 |
Ricardo Branco <rbranco@suse.de> |
md5: Enter capability mode earlier
Reviewed by: markj MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/988
|
#
32e86a82 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remo
sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
2ea65afb |
| 07-Aug-2023 |
Mariusz Zaborski <oshogbo@FreeBSD.org> |
md5: extend capabilites
In 4849767cb16a4, we did a large refactor of the md5(1) source code. One of them is that instead of reading data using read(2) syscall, we are using binary stream input (frea
md5: extend capabilites
In 4849767cb16a4, we did a large refactor of the md5(1) source code. One of them is that instead of reading data using read(2) syscall, we are using binary stream input (fread(3)).
fread(3) requires additional Capsicum capabilities: sha256 CAP operation requires CAP_FSTAT, descriptor holds CAP_READ sha256 RET fstat -1 errno 93 Capabilities insufficient
Reviewed by: des Differential Revision: https://reviews.freebsd.org/D41348
show more ...
|
#
27e74c8f |
| 11-May-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Add missing <errno.h>.
Sponsored by: Klara, Inc. Reviewed by: yuripv Differential Revision: https://reviews.freebsd.org/D40051
|
#
facc2136 |
| 09-May-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Don't increment a bool.
Fixes: 4849767cb16a MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D40020
|
#
90eaf4b2 |
| 09-May-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Include <osreldate.h> for __FreeBSD_version.
It is usually provided by <sys/param.h>, but not when bootstrapping.
Fixes: 4849767cb16a MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by:
md5: Include <osreldate.h> for __FreeBSD_version.
It is usually provided by <sys/param.h>, but not when bootstrapping.
Fixes: 4849767cb16a MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: yuripv, kevans Differential Revision: https://reviews.freebsd.org/D40018
show more ...
|
#
f1ceb05a |
| 09-May-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Fix input error check.
Fixes: 4849767cb16a MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: tsoome, kevans, lwhsu Differential Revision: https://reviews.freebsd.org/D40017
|
#
4849767c |
| 08-May-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
md5: Improve compatibility.
* Overhaul the GNU compatibility mode to more closely emulate what the GNU tools do.
* Add a Perl compatibility mode which emulates the shasum tool that ships with Perl.
md5: Improve compatibility.
* Overhaul the GNU compatibility mode to more closely emulate what the GNU tools do.
* Add a Perl compatibility mode which emulates the shasum tool that ships with Perl. This is currently not installed.
* Overhaul the tests.
Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D39446
show more ...
|
Revision tags: release/13.2.0 |
|
#
8d78a0d3 |
| 13-Feb-2023 |
Kyle Evans <kevans@FreeBSD.org> |
md5: fix *sum -c with missing files
If we fail to open one of the files in the file listing, we still need to advance `rec` along with `argv` so that the checksum we're checking against lines up wit
md5: fix *sum -c with missing files
If we fail to open one of the files in the file listing, we still need to advance `rec` along with `argv` so that the checksum we're checking against lines up with the file we're hashing.
Tests added both for the -c flag, as well as the -b and -t modes of the *sum programs.
PR: 267722 Reviewed by: emaste (earlier version) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D37374
show more ...
|
#
2768d705 |
| 06-Feb-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libmd / md5: Add SHA-512/224.
While there, remove .Tn from man pages.
Also remove an obsolete comment about the 80386.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans, allanjude Di
libmd / md5: Add SHA-512/224.
While there, remove .Tn from man pages.
Also remove an obsolete comment about the 80386.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans, allanjude Differential Revision: https://reviews.freebsd.org/D38373
show more ...
|
Revision tags: release/12.4.0 |
|
#
9f3aa538 |
| 26-Jul-2022 |
Stefan Eßer <se@FreeBSD.org> |
sbin/md5.c: fix -q -c for BSD style versions
The BSD style commands (with names not ending in "sum") ignored the -c options and the passed digest value when invoked with -q.
The man page stated tha
sbin/md5.c: fix -q -c for BSD style versions
The BSD style commands (with names not ending in "sum") ignored the -c options and the passed digest value when invoked with -q.
The man page stated that -q causes only the calculated digest to be printed, but did not consider the case of both the -q and -c being used in combination.
Since there is no warning that -c will be ignored when the -q option is used, users night (and did) expect that the exit code would reflect the matching of the calculated digest and the argument passed with -c.
This update implements and documents this expected behavior.
PR: 265461 Reported by: Dmitrij <bugs.freebsd@1fff.net> MFC after: 2 weeks
show more ...
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
b33d1898 |
| 29-Jun-2021 |
Stefan Eßer <se@FreeBSD.org> |
md5: Improve compatibility with coreutils and format fix
The previous changes that added support for the coreutils -c option modified the output generated by passing -r to match that of the coreutil
md5: Improve compatibility with coreutils and format fix
The previous changes that added support for the coreutils -c option modified the output generated by passing -r to match that of the coreutils versions. The difference is that coreutils separates the hash from the file name by two blanks " " (or a blank followed by an asterisk " *" with the -b option denoting).
While most scripts or users will not notice the difference, it might be considered a violation of POLA and this commit reverts the change for the non-sum programs. These will print a single blank " " as the separator, as they die before the previous commit.
In order to still generate output that is identical to that of the coreutils programs, this commit generates the " " or " *" separator used by them for the -sum versions, depending on the presence of the -b option.
MFC after: 3 days
show more ...
|
#
cab31e0e |
| 25-Jun-2021 |
Jessica Clarke <jrtc27@FreeBSD.org> |
md5: Fix cross-build after c2870e576bd2
On macOS and Linux the current set of headers do not end up pulling in sys/param.h, causing MAXPATHLEN to not be defined and the build to fail.
|
#
c2870e57 |
| 25-Jun-2021 |
Stefan Eßer <se@FreeBSD.org> |
sbin/md5: improve compatibility with coreutils -c option
The -c option expects a digest file in either BSD or coreutils format.
The output for matched and mismatched files is identical to that of t
sbin/md5: improve compatibility with coreutils -c option
The -c option expects a digest file in either BSD or coreutils format.
The output for matched and mismatched files is identical to that of the coreutils version.
The review of these changes included test cases that have already been committed for the functionality that existed before. Another test script is added to cover the coreutils compatible extension implemented by this patch.
This commit contains a tests/Makefile that has been cleaned up compared to the review version, using an implicit rule to apply the TESTBASE path at build time (and the scripts have been renamed to have an extension of .SH instead of .sh to trigger this rule).
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D30812
show more ...
|
#
d0ea5e46 |
| 20-May-2021 |
Warner Losh <imp@FreeBSD.org> |
md5: portability fix -- include stdbool.h explicitly
stdbool.h needs to be included to use type bool variables. Due to namespace pollution, this gets brought in on FreeBSD, but not on other systems.
md5: portability fix -- include stdbool.h explicitly
stdbool.h needs to be included to use type bool variables. Due to namespace pollution, this gets brought in on FreeBSD, but not on other systems. Include it explicilty.
Noticed by: arichards@ Sponsored by: Netflix
show more ...
|
#
086feed8 |
| 19-May-2021 |
Warner Losh <imp@FreeBSD.org> |
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.
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
show more ...
|
Revision tags: release/13.0.0, release/12.2.0 |
|
#
c7aa572c |
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|