From: Jim Meyering Date: Sat, 24 May 2003 16:55:37 +0000 (+0000) Subject: (split_3): Accept the BSD format only when in MD5 mode. X-Git-Tag: v5.0.1~449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55dab17c42c28c8ec242c5f69e9bb1406e1989d6;p=thirdparty%2Fcoreutils.git (split_3): Accept the BSD format only when in MD5 mode. --- diff --git a/src/md5sum.c b/src/md5sum.c index 2d6778b745..41962f3333 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);