Skip to content

Commit

Permalink
Add cksum to the list of checksum functions.
Browse files Browse the repository at this point in the history
cksum is present on POSIX systems and the *majority* of Linux systems.
Hence, MacOS has it too. I would like to have this merged in as a
default; I use cksum frequently because it's 10x faster than md5sum
for non-secure checksums.

POSIX 1003.2

https://en.wikipedia.org/wiki/Cksum
https://pubs.opengroup.org/onlinepubs/009696799/utilities/cksum.html
  • Loading branch information
ryanmjacobs committed Jul 28, 2023
1 parent 45cad6c commit c59fe6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
static int proc_names_cnt;
static char **proc_names;
char *default_proc_names[] = {"cp", "mv", "dd", "tar", "bsdtar", "cat", "rsync", "scp",
"grep", "fgrep", "egrep", "cut", "sort", "md5sum", "sha1sum",
"grep", "fgrep", "egrep", "cut", "sort", "cksum", "md5sum", "sha1sum",
"sha224sum", "sha256sum", "sha384sum", "sha512sum",
#ifdef __FreeBSD__
"md5", "sha1", "sha224", "sha256", "sha512", "sha512t256", "rmd160",
Expand Down

0 comments on commit c59fe6b

Please sign in to comment.