summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:18:21 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:18:21 +0000
commit3fff9c1441fb00e94c5e7e660a2b9891820891b3 (patch)
treece754abf9e428ec12de9c1c612a3bb2a520edc16 /src
parente32032accf82f50f02f717e13edb48169c095ddc (diff)
downloadcoreutils-3fff9c1441fb00e94c5e7e660a2b9891820891b3.tar.xz
Include stdio--.h.
(digest_check): Don't try to read both checksums and data from stdin.
Diffstat (limited to 'src')
-rw-r--r--src/md5sum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index 0fca7aa8c..e7eac0437 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -31,6 +31,7 @@
#include "getline.h"
#include "error.h"
#include "quote.h"
+#include "stdio--.h"
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME (algorithm == ALG_MD5 ? "md5sum" : "sha1sum")
@@ -415,6 +416,7 @@ digest_check (const char *checkfile_name, int (*digest_stream) (FILE *, void *))
line[--line_length] = '\0';
if (! (split_3 (line, line_length, &hex_digest, &binary, &filename)
+ && ! (is_stdin && STREQ (filename, "-"))
&& hex_digits (hex_digest)))
{
if (warn)