summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPatrick Schoenfeld <schoenfeld@debian.org>2011-07-07 08:57:39 +0200
committerJim Meyering <meyering@redhat.com>2011-07-07 16:42:47 +0200
commit33171d049a162ca5648c7e213e9c988ea835a19b (patch)
tree77022f7d0ceff372e08a61248a97ed7d94441b74 /NEWS
parent88bdce982a99238b5320eca4e19d86fd364419ee (diff)
downloadcoreutils-33171d049a162ca5648c7e213e9c988ea835a19b.tar.xz
md5sum, sha1sum, etc: accept new option: --strict
Use this new option with --check when the input is expected to consist solely of checksum lines. With only --check, an invalid line evokes a warning, but the program can still exit successfully. With --strict, any invalid line makes the program exit non-zero. * src/md5sum.c (strict, STRICT_OPTION): Declare/define. (long_options): Add "strict". (usage): Describe --strict. (digest_check): Count improperly_formatted lines, too, and use that number and the global "strict" to determine the return value. (main): Handle STRICT_OPTION. Reject --strict without --check. * doc/coreutils.texi: Describe it. * NEWS (New features): Mention it.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f7e782344..32dab7a01 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,10 @@ GNU coreutils NEWS -*- outline -*-
Note the use of single quotes, not double quotes.
That creates files named xaa.xz, xab.xz and xac.xz.
+ md5sum accepts the new --strict option. With --check, it makes the
+ tool exit non-zero for any invalid input line, rather than just warning.
+ This also affects sha1sum, sha224sum, sha384sum and sha512sum.
+
** Improvements
shuf outputs small subsets of large permutations much more efficiently.