From c59fe6be238220d6421e75894cf5cc5b1db84530 Mon Sep 17 00:00:00 2001 From: Ryan Jacobs Date: Fri, 28 Jul 2023 15:08:49 -0700 Subject: Add `cksum` to the list of checksum functions. 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 --- progress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress.c b/progress.c index 3323a89..b997fa6 100644 --- a/progress.c +++ b/progress.c @@ -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", -- cgit v1.2.3