mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 10:51:48 +02:00
Include stdio--.h.
(digest_check): Don't try to read both checksums and data from stdin.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user