summaryrefslogtreecommitdiff
path: root/doc
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 /doc
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 'doc')
-rw-r--r--doc/coreutils.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 11ac7fd8a..1ab8a92e9 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -3702,6 +3702,13 @@ When verifying checksums, warn about improperly formatted MD5 checksum lines.
This option is useful only if all but a few lines in the checked input
are valid.
+@itemx --strict
+@opindex --strict
+@cindex verifying MD5 checksums
+When verifying checksums,
+if one or more input line is invalid,
+exit nonzero after all warnings have been issued.
+
@end table
@exitstatus