<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/doc, 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-20T15:21:15Z</updated>
<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: 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>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>
<entry>
<title>cksum: use --tag format by default</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-13T11:57:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f9a787656b70d914fb4430f7d332027e6a906a08'/>
<id>urn:sha1:f9a787656b70d914fb4430f7d332027e6a906a08</id>
<content type='text'>
This format is a better default, since it results in simpler usage,
as you don't need to specify --tag on generation or -a on
checking invocations.  Also it's a more general format supporting
mixed and length adjusted digests.

* doc/coreutils.texi (cksum invocation): Document a new --untagged
option, to use the older coreutils format.
(md5sum invocation): Mention that cksum doesn't support --tag.
* src/digest.c: Adjust cksum(1) to default to --tag,
and accept the new --untagged option.
* tests/misc/b2sum.sh: Adjust accordingly.
* tests/misc/cksum-a.sh: Likewise.
* tests/misc/cksum-c.sh: Likewise.
</content>
</entry>
<entry>
<title>cksum: support digest detection for tagged format</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-11T15:19:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=772173a8328ffdbde7a6639f456b36a5522e60bc'/>
<id>urn:sha1:772173a8328ffdbde7a6639f456b36a5522e60bc</id>
<content type='text'>
Support `cksum --check FILE` without having to specify a digest
algorithm, allowing for more generic file check instructions.
This also supports mixed digest checksum files, supporting
more robust multi digest checks.

* src/digest.c (algorithm_from_tag): A new function to
identify the digest algorithm from a tagged format line.
(split3): Set the algorithm depending on tag, and update
the expected digest length accordingly.
* tests/misc/cksum-c.sh: Add a new test.
* tests/local.mk: Reference the new test.
* tests/misc/md5sum.pl: Adjust to more generic error.
* tests/misc/sha1sum.pl: Likewise.
* doc/coreutils.texi (md5sum invocation): Mention the new -c feature.
* NEWS: Mention the new feature.
</content>
</entry>
<entry>
<title>digest: add support for sm3</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-07T14:45:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8362f2552a4192d6b1e0e46fa5edd4ce76e29560'/>
<id>urn:sha1:8362f2552a4192d6b1e0e46fa5edd4ce76e29560</id>
<content type='text'>
Add message digest sm3, which uses the OSCCA SM3 secure
hash (OSCCA GM/T 0004-2012 SM3) generic hash transformation.

* bootstrap.conf: Add the sm3 module.
* doc/coreutils.texi: Mention the cksum -a option.
* src/digest.c: Provide support for --algorithm='sm3'.
* tests/misc/sm3sum.pl: Add a new test (from Tianjia Zhang)
* tests/local.mk: Reference the new test.
* NEWS: Mention the new feature.

Tested-by: Tianjia Zhang &lt;tianjia.zhang@linux.alibaba.com&gt;
</content>
</entry>
<entry>
<title>cksum: add --algorithm option to select digest mode</title>
<updated>2021-09-15T19:44:16Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-06T14:17:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ad6c8e1181a3966e35d68c1c354deb1c73f3e974'/>
<id>urn:sha1:ad6c8e1181a3966e35d68c1c354deb1c73f3e974</id>
<content type='text'>
* src/digest.c: Organize HASH_ALGO_CKSUM to be table driven,
and amalgamate all digest algorithms.
(main): Parse all options if HASH_ALGO_CKSUM, and disallow
--tag, --zero, and --check with the traditional bsd, sysv, and crc
checksums for now.
* src/local.mk: Reorganize to include all digest modules in cksum.
* tests/misc/cksum-a.sh: Add a new test.
* tests/misc/b2sum.sh: Update to default to checking with cksum,
as b2sum's implementation diverges a bit from the others.
* tests/local.mk: Reference the new test.
* doc/coreutils.texi (cksum invocation): Adjust the summary to
identify the new mode, and document the new --algorithm option.
* man/cksum.x: Adjust description to be more general.
* man/*sum.x: Add [See Also] section referencing cksum(1).
* NEWS: Mention the new feature.
</content>
</entry>
<entry>
<title>cksum: document the --debug option</title>
<updated>2021-09-15T14:35:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-05T21:07:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2aab794c84bac9bfc061c24084e83a75d83156de'/>
<id>urn:sha1:2aab794c84bac9bfc061c24084e83a75d83156de</id>
<content type='text'>
This should have been part of commit v8.32-113-gb73b9fcb1

* doc/coreutils.texi (cksum invocation): Add the --debug description.
* src/cksum.c (usage): Likewise.
(main): Also give explicit indication when using generic hardware.
</content>
</entry>
<entry>
<title>doc: fix ambiguities in logname(1) and whoami(1)</title>
<updated>2021-09-15T14:26:22Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-15T14:21:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f76a568313b41ab649af60ae5ca1c4811208d379'/>
<id>urn:sha1:f76a568313b41ab649af60ae5ca1c4811208d379</id>
<content type='text'>
* doc/coreutils.texi (whoami invocation): Clarify it prints names,
not numeric IDs.
* man/whoami.x: Likewise.
* man/logname.x: Reference getlogin(3).
* src/logname.c: Clarify that it prints the login name,
rather than the name of the effective user ID.

Fixes https://bugs.gnu.org/48894
</content>
</entry>
<entry>
<title>doc: can “can can”</title>
<updated>2021-09-09T15:05:14Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-09-09T15:05:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=588790a38c78ccabe6ea9843ec9bce3ae78ecdba'/>
<id>urn:sha1:588790a38c78ccabe6ea9843ec9bce3ae78ecdba</id>
<content type='text'>
Problem reported by Akbarkhon Variskhanov (Bug#50484).
</content>
</entry>
</feed>
