<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/digest.c, branch v9.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2021-09-20T20:42:28Z</updated>
<entry>
<title>doc: drop extraneous single quotes in help</title>
<updated>2021-09-20T20:42:28Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@fb.com</email>
</author>
<published>2021-09-18T16:27:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f6fc52a828c0778ff5d7c5ad794c2b2216229e88'/>
<id>urn:sha1:f6fc52a828c0778ff5d7c5ad794c2b2216229e88</id>
<content type='text'>
* src/digest.c (usage) [cksum --help]: Drop single quotes
around each checksum name.
* src/tee.c (usage) [tee --help]: Likewise.
</content>
</entry>
<entry>
<title>cksum: list Pádraig as coauthor</title>
<updated>2021-09-20T20:42:26Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@fb.com</email>
</author>
<published>2021-09-18T16:30:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=971aebfacc6d8f95207ce359235df63c0720537d'/>
<id>urn:sha1:971aebfacc6d8f95207ce359235df63c0720537d</id>
<content type='text'>
* src/digest.c (AUTHORS) [HASH_ALGO_CKSUM]: Add Pádraig as
cksum coauthor.
* AUTHORS: Likewise.
</content>
</entry>
<entry>
<title>doc: fix --help formatting for checksum utils</title>
<updated>2021-09-20T15:27:39Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-20T12:56:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=22d3751e0f6d36919238b20b1374abcc8e1dc447'/>
<id>urn:sha1:22d3751e0f6d36919238b20b1374abcc8e1dc447</id>
<content type='text'>
* src/digest.c (usage): Indicate that --length and --algorithm
require arguments.  Emit corresponding emit_mandatory_arg_note().
Use consistent alignment.
</content>
</entry>
<entry>
<title>cksum: support more transparent emulation of older utils</title>
<updated>2021-09-20T15:21:15Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-20T10:54:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=88b7ff98fe412a32e321d8cc76c896d0fb81c51c'/>
<id>urn:sha1:88b7ff98fe412a32e321d8cc76c896d0fb81c51c</id>
<content type='text'>
* src/digest.c: Allow using the --untagged option with --check,
so that `cksum -a md5 --untagged` used to emulate md5sum for example,
may be augmented with the --check option.  Also support the --tag
option with cksum, to allow overriding a previous --untagged setting.
* doc/coreutils.texi: Adjust accordingly.
* tests/misc/cksum-a.sh: Likewise.
</content>
</entry>
<entry>
<title>digest: ignore empty lines when checking</title>
<updated>2021-09-16T19:39:28Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-16T11:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e6c57cf19b1e2660da1ceca92fc8837493cd157e'/>
<id>urn:sha1:e6c57cf19b1e2660da1ceca92fc8837493cd157e</id>
<content type='text'>
* src/digest.c (digest_check): Treat empty lines like comments,
as commented checksum files very often have empty lines.
* tests/misc/md5sum.pl: Adjust accordingly.
</content>
</entry>
<entry>
<title>cksum: fix --check with non tagged format checksums</title>
<updated>2021-09-16T11:20:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-16T10:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=73f8fd760d4c5e63e6290c65092063e855e68626'/>
<id>urn:sha1:73f8fd760d4c5e63e6290c65092063e855e68626</id>
<content type='text'>
* src/digest.c: Always set the digest_length, so that
we check the correct number of hex digits when parsing
non tagged format checksums.
* tests/misc/cksum-a.sh: Add a test case.  Also fix
up this test which was ineffective due to fail=1
being set in a subshell and ignored.
</content>
</entry>
<entry>
<title>cksum: fix off-by-1 bug with \r stripping</title>
<updated>2021-09-16T07:25:26Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-09-16T07:17:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=121f74dfc2e060a2ae174a636cd773f4d461a852'/>
<id>urn:sha1:121f74dfc2e060a2ae174a636cd773f4d461a852</id>
<content type='text'>
Problem reported by Jim Meyering (Bug#50611).
* src/digest.c (digest_check): When stripping trailing \r,
avoid subscript error before start of line.
</content>
</entry>
<entry>
<title>digest: support windows format checksum files</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-14T21:52:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ed1c58427d574fb4ff0cb8f915eb0d554000ceeb'/>
<id>urn:sha1:ed1c58427d574fb4ff0cb8f915eb0d554000ceeb</id>
<content type='text'>
Support checksum files with CRLF line endings,
which is a common gotcha for using --check on windows,
or with checksum files generated on windows.
Note we escape \r here to support the original coreutils format
(with file name at EOL), and file names with literal
\r characters as the last character of their name.

* src/digest.c (filename_unescape): Convert \\r -&gt; \r.
(print_filename): Escape \r -&gt; \\r.
(output_file): Detect \r chars in file names.
(digest_check): Ignore literal \r char at EOL.
* tests/misc/md5sum.pl: Add a test case.
* tests/misc/sha1sum.pl: Likewise.
* NEWS: Mention the improvement.
</content>
</entry>
<entry>
<title>doc: improve --help indenting in checksum utils</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-14T16:14:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7b8f38aa872de2b27174281db14e6a7ee043eb1b'/>
<id>urn:sha1:7b8f38aa872de2b27174281db14e6a7ee043eb1b</id>
<content type='text'>
* src/digest.c (usage): Indent multi-line descriptions for clarity.
</content>
</entry>
<entry>
<title>cksum: operate in binary mode only</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-13T14:24:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8d5038af05ccce1c9f916c7e49cc381218ddeca2'/>
<id>urn:sha1:8d5038af05ccce1c9f916c7e49cc381218ddeca2</id>
<content type='text'>
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.
</content>
</entry>
</feed>
