diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-24 16:55:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-24 16:55:37 +0000 |
commit | 55dab17c42c28c8ec242c5f69e9bb1406e1989d6 (patch) | |
tree | e6fadc5783a998af2755d7c5cda2aac639130138 | |
parent | fab4d80dfbb84eed3cf2d1f12211987d074b489c (diff) | |
download | coreutils-55dab17c42c28c8ec242c5f69e9bb1406e1989d6.tar.xz |
(split_3): Accept the BSD format only when in MD5 mode.
-rw-r--r-- | src/md5sum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index 2d6778b74..41962f333 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -215,7 +215,7 @@ split_3 (char *s, size_t s_len, ++i; /* Check for BSD-style checksum line. */ - if (strncmp (s + i, "MD5 (", 5) == 0) + if (algorithm == ALG_MD5 && strncmp (s + i, "MD5 (", 5) == 0) { *binary = 0; return bsd_split_3 (s + i + 5, s_len - i - 5, hex_digest, file_name); |