diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-11-17 04:16:15 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-11-17 04:16:15 +0000 |
commit | 26f8e95d2d6efe4c25a80314fc2a4333099c0eaa (patch) | |
tree | 25b8cd9d7061c38386951cc3c59f29d0db0f5f35 | |
parent | 5c2bbb55d7ad0ffc36261bb1b46da1aa24487448 (diff) | |
download | busybox-w32-26f8e95d2d6efe4c25a80314fc2a4333099c0eaa.tar.gz busybox-w32-26f8e95d2d6efe4c25a80314fc2a4333099c0eaa.tar.bz2 busybox-w32-26f8e95d2d6efe4c25a80314fc2a4333099c0eaa.zip |
David Kimdon <dwhedon@instant802.com> noticed a thinko
in md5sum where only binary sums were verified. He also
sent in this patch,
-Erik
-rw-r--r-- | coreutils/md5sum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c index bb4d115ca..83c769ef2 100644 --- a/coreutils/md5sum.c +++ b/coreutils/md5sum.c | |||
@@ -699,12 +699,12 @@ static int split_3(char *s, | |||
699 | 699 | ||
700 | s[i++] = '\0'; | 700 | s[i++] = '\0'; |
701 | 701 | ||
702 | if (s[i] != ' ' && s[i++] != '*') | 702 | if (s[i] != ' ' && s[i] != '*') |
703 | return FALSE; | 703 | return FALSE; |
704 | 704 | ||
705 | /* All characters between the type indicator and end of line are | 705 | /* All characters between the type indicator and end of line are |
706 | significant -- that includes leading and trailing white space. */ | 706 | significant -- that includes leading and trailing white space. */ |
707 | *w = &s[i]; | 707 | *w = &s[++i]; |
708 | 708 | ||
709 | if (escaped_filename) { | 709 | if (escaped_filename) { |
710 | /* Translate each `\n' string in the file name to a NEWLINE, | 710 | /* Translate each `\n' string in the file name to a NEWLINE, |