cksum: ensure appropriate "binary" mode with --untagged
commit7b92e9fb2643371ebcecc092d8f4453a7ff23a75
authorPádraig Brady <P@draigBrady.com>
Wed, 6 Mar 2024 21:54:02 +0000 (6 21:54 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 6 Mar 2024 21:54:02 +0000 (6 21:54 +0000)
tree48492fb405b8ce4bebfa467e197349f17eea4e0b
parent9d8890d87231d477ca78269a4fce9242ec0624f1
cksum: ensure appropriate "binary" mode with --untagged

* src/digest.c (main): If --binary was enabled with a previous --tag,
then reset the binary mode to auto select if --untagged then specified.
* tests/cksum/cksum-a.sh: Add a test case.
src/digest.c
tests/cksum/cksum-a.sh