]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: operate in binary mode only
authorPádraig Brady <P@draigBrady.com>
Mon, 13 Sep 2021 14:24:24 +0000 (15:24 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Sep 2021 19:44:18 +0000 (20:44 +0100)
commit8d5038af05ccce1c9f916c7e49cc381218ddeca2
tree6e54c666c725cd662da4d0457177b7d68224dd63
parentf9a787656b70d914fb4430f7d332027e6a906a08
cksum: operate in binary mode only

This only practically matters on windows.
But given there are separate text handling options in cygwin,
keep the interface simple, and avoid exposing the
confusing binary/text difference here.

* doc/coreutils.texi (md5sum invocation): Mention that
--binary and --text are not supported by the cksum command.
* src/digest.c: Set flag to use binary mode by default.
(output_file): Don't distinguish text and binary modes with
' ' and '*', and just use ' ' always.
doc/coreutils.texi
src/digest.c
tests/misc/sm3sum.pl