summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAdam Heath <doogie@debian.org>2001-11-28 23:30:31 +0000
committerAdam Heath <doogie@debian.org>2001-11-28 23:30:31 +0000
commit691b00263a1611db342ced0cabb071937207e6e0 (patch)
treefcc31723e76e1fcb74e8dc87fa62692fa1d3705a /utils
parent6b77e05ab2d5a235704f1012c4550a48e9b2b871 (diff)
downloaddpkg-691b00263a1611db342ced0cabb071937207e6e0.tar.gz
When parsing stdin, md5sum now displays '-' as the filename, to match
textutils md5sum.
Diffstat (limited to 'utils')
-rw-r--r--utils/md5sum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/md5sum.c b/utils/md5sum.c
index de98869de..fca55b673 100644
--- a/utils/md5sum.c
+++ b/utils/md5sum.c
@@ -127,7 +127,7 @@ main(int argc, char **argv)
push_error_handler(&ejbuf, print_md5sum_error, "stdin");
mdfile(fileno(stdin), &digest);
- printf("%s\n", digest);
+ printf("%s %c-\n", digest, bin_mode ? '*' : ' ');
set_error_display(0, 0);
error_unwind(ehflag_normaltidy);
exit(0);