From b31a1b8e4fbc9e61cb906ebe6c3b8a739221dadc Mon Sep 17 00:00:00 2001 From: Hubert Feurstein Date: Tue, 10 Dec 2019 18:36:01 +0100 Subject: commands: digest: don't be to restrictive with the length of verification files Otherwise it is not possible to verify against a file created by shaXsum from linux. Usually there is the filename appended after the hash. Signed-off-by: Hubert Feurstein Signed-off-by: Sascha Hauer --- commands/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/digest.c b/commands/digest.c index 99b27dcc25..21a0917170 100644 --- a/commands/digest.c +++ b/commands/digest.c @@ -164,7 +164,7 @@ static int do_digest(int argc, char *argv[]) if (sig) { digestlen = digest_length(d); - if (siglen == 2 * digestlen) { + if (siglen >= 2 * digestlen) { if (!tmp_sig) tmp_sig = xmalloc(digestlen); -- cgit v1.2.3