summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Jacobs <ryan@rmj.us>2023-07-28 15:08:49 -0700
committerRyan Jacobs <ryan@rmj.us>2023-07-28 15:15:38 -0700
commitc59fe6be238220d6421e75894cf5cc5b1db84530 (patch)
tree90ef8578d805e2c623625d129742708b028b53d7
parent45cad6c8b8bfc97678d741783bc8b8285cdff360 (diff)
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
-rw-r--r--progress.c2
1 files changed, 1 insertions, 1 deletions
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",