<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/NEWS, 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-24T12:35:26Z</updated>
<entry>
<title>version 9.0</title>
<updated>2021-09-24T12:35:26Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-24T12:35:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=725bb111bda62d8446a0beed366bd9d2c06c8eff'/>
<id>urn:sha1:725bb111bda62d8446a0beed366bd9d2c06c8eff</id>
<content type='text'>
* NEWS: Record release date.
</content>
</entry>
<entry>
<title>stat,tail: add support for the secretmem file system</title>
<updated>2021-09-16T14:21:05Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-16T14:21:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=92ffc842dc6215cf0be4b9b96f9ef919844a3570'/>
<id>urn:sha1:92ffc842dc6215cf0be4b9b96f9ef919844a3570</id>
<content type='text'>
* src/stat.c (human_fstype): Add case for the 'secretmem'
file system type.
* NEWS: Mention the Improvement.
</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: 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>sum: always output a file name if one passed</title>
<updated>2021-08-31T10:33:26Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-08-29T19:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e1c21f39cca35df572dd128028f9b9f4e34835f8'/>
<id>urn:sha1:e1c21f39cca35df572dd128028f9b9f4e34835f8</id>
<content type='text'>
Adjust to output the file name if any name parameter is passed.
This is consistent with sum -s, cksum, and sum implementations
on other platforms.  This should not cause significant compat
issues, as multiple fields are already output, and so already
need to be parsed.

* src/sum.c (bsd_sum_file): Output the file name
if any name parameter is passed.
* tests/misc/sum.pl: Adjust accordingly.
* doc/coreutils.texi (sum invocation): Likewise.
* NEWS: Mention the change in behavior.
</content>
</entry>
<entry>
<title>basenc: fix bug49741: using wrong decoding buffer length</title>
<updated>2021-08-30T04:06:32Z</updated>
<author>
<name>Assaf Gordon</name>
<email>assafgordon@gmail.com</email>
</author>
<published>2021-08-16T21:03:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=709d1f8253072804cc27189a6f2b873d8d563399'/>
<id>urn:sha1:709d1f8253072804cc27189a6f2b873d8d563399</id>
<content type='text'>
Emil Lundberg &lt;lundberg.emil@gmail.com&gt; reports in
https://bugs.gnu.org/49741 about a 'basenc --base64 -d' decoding bug.
The input buffer length was not divisible by 3, resulting in
decoding errors.

* NEWS: Mention fix.
* src/basenc.c (DEC_BLOCKSIZE): Change from 1024*5 to 4200 (35*3*5*8)
which is divisible by 3,4,5,8 - satisfying both base32 and base64;
Use compile-time verify() macro to enforce the above.
* tests/misc/basenc.pl: Add test.
</content>
</entry>
<entry>
<title>chmod: fix use of uninitialized var if -v</title>
<updated>2021-08-16T04:32:09Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-08-16T04:29:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=bbb19b18687d5572dcbe7bbb1a48c8ee0f21786b'/>
<id>urn:sha1:bbb19b18687d5572dcbe7bbb1a48c8ee0f21786b</id>
<content type='text'>
Problem reported by Michael Debertol (Bug#50070).
* NEWS: Mention the fix.
* src/chmod.c (struct change_status): New struct, replacing the
old enum Change_status.  All uses changed.
(describe_change): Distinguish between cases depending on
whether 'stat' or its equivalent succeeded.  Report a line
of output even if 'stat' failed, as that matches the documentation.
Rework to avoid casts.
(process_file): Do not output nonsense modes computed from
uninitialized storage, removing a couple of IF_LINTs.  Simplify by
defaulting to CH_NO_STAT.
</content>
</entry>
<entry>
<title>df: fix bug with automounted</title>
<updated>2021-08-11T18:22:40Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-08-11T18:16:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a3c04f8da14f0fe2a0561bf5562032b8ce5dafa9'/>
<id>urn:sha1:a3c04f8da14f0fe2a0561bf5562032b8ce5dafa9</id>
<content type='text'>
If the command-line argument is automounted, df would use
stat info that became wrong after the following open.
* NEWS: Mention the fix (bug#50012).
* src/df.c (automount_stat_err): New function.
This fixes the hang on fifos in a better way, by using O_NONBLOCK.
(main): Use it.
</content>
</entry>
</feed>
