From 9fd0662faa4db68dea4fb4ba3f918b6a8f9598c4 Mon Sep 17 00:00:00 2001 From: Luther Thompson Date: Sun, 22 Nov 2015 21:47:59 +0000 Subject: md5sum,sha*sum: add --ignore-missing for checking a subset of files * doc/coreutils.texi (md5sum invocation): Document the new option. * src/md5sum.c (digest_file): Return an empty digest to indicate a missing file. (digest_check): Don't fail or output status given an empty checksum. (usage): Document the new option. (main): Process and validate the new option. * tests/misc/md5sum.pl: Add new test cases. * NEWS: Mention the new feature. Fixes http://bugs.gnu.org/15604 --- doc/coreutils.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/coreutils.texi') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 0e28f4971..7918aec6a 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -3830,6 +3830,14 @@ an MD5 checksum inconsistent with the associated file, or if no valid line is found, @command{md5sum} exits with nonzero status. Otherwise, it exits successfully. +@item --ignore-missing +@opindex --ignore-missing +@cindex verifying MD5 checksums +This option is useful only when verifying checksums. +When verifying checksums, don't fail or report any status +for missing files. This is useful when verifying a subset +of downloaded files given a larger list of checksums. + @item --quiet @opindex --quiet @cindex verifying MD5 checksums -- cgit v1.2.3-70-g09d2