summaryrefslogtreecommitdiff
path: root/src/md5sum.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-08-10 21:11:24 +0000
committerJim Meyering <jim@meyering.net>1995-08-10 21:11:24 +0000
commitb0453a43c0b5ba73d879cb0455c94161ad2ff627 (patch)
tree240ff10a2549ff7a12f9d3f0ae83f50f45e92a78 /src/md5sum.c
parentb30b152bb7cd15a455160516371a01b8bf758ad4 (diff)
downloadcoreutils-b0453a43c0b5ba73d879cb0455c94161ad2ff627.tar.xz
(main) [handling --string option]: Don't output nonstandard `b' binary flag.
Diffstat (limited to 'src/md5sum.c')
-rw-r--r--src/md5sum.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index 12d756891..53d98c8b1 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -289,7 +289,8 @@ md5_check (checkfile_name, binary)
{
if (verbose)
{
- error (0, 0, _("%s: %lu: invalid MD5 checksum line"),
+ error (0, 0,
+ _("%s: %lu: improperly formatted MD5 checksum line"),
checkfile_name, (unsigned long) line_number);
}
}
@@ -345,7 +346,9 @@ md5_check (checkfile_name, binary)
if (n_tests == 0)
{
- /* FIXME: warn (or even fail?) if no tests are found? */
+ /* Warn if no tests are found. */
+ error (0, 0, _("%s: no properly formatted MD5 checksum lines found"),
+ checkfile_name);
}
else
{
@@ -354,14 +357,14 @@ md5_check (checkfile_name, binary)
if (n_tests_failed == 0)
{
printf (n_tests == 1
- ? _("the single test passed\n")
- : _("all %d tests passed\n"), n_tests);
+ ? _("the single computed checksum matched\n")
+ : _("all %d computed checksums matched\n"), n_tests);
}
else
{
printf (n_tests == 1
- ? _("the single test failed\n")
- : _("%d out of %d tests failed\n"),
+ ? _("WARNING: the single computed checksum did NOT match\n")
+ : _("WARNING: %d out of %d computed checksums did NOT match\n"),
n_tests_failed, n_tests);
}
}