From 9281ef602d16da892198f42f139f095b81b6d917 Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Fri, 23 Aug 2002 04:22:03 +0000 Subject: [PATCH] Handle directories better in md5sum. --- ChangeLog | 4 ++++ debian/changelog | 1 + utils/md5sum.c | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fa7300a1..453da1b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 22 23:16:02 CDT 2002 Adam Heath + + * utils/md5sum.c: Handle directories better in md5sum. + Thu Aug 22 23:06:39 CDT 2002 Adam Heath * scripts/dpkg-scanpackages.pl: Fix extraction of md5sum in diff --git a/debian/changelog b/debian/changelog index 4a167e7f..ff498c62 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ dpkg (1.10.5) unstable; urgency=low * Fix segfault in md5sum if the file being checked doesn't exist. Closes: #154503. * Fix extraction of md5sum in dpkg-scanpackages. Closes: #153769. + * Handle directories better in md5sum. Closes: #157453. -- Adam Heath UNRELEASED diff --git a/utils/md5sum.c b/utils/md5sum.c index 37b5654c..5b6b9392 100644 --- a/utils/md5sum.c +++ b/utils/md5sum.c @@ -145,8 +145,9 @@ main(int argc, char **argv) perror(*argv); rc++; break; + default: + printf("%s %c%s\n", digest, bin_mode ? '*' : ' ', *argv); } - printf("%s %c%s\n", digest, bin_mode ? '*' : ' ', *argv); } return rc; } -- 2.39.5