summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorHubert Feurstein <h.feurstein@gmail.com>2019-12-10 18:36:01 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-12-11 09:39:54 +0100
commitb31a1b8e4fbc9e61cb906ebe6c3b8a739221dadc (patch)
tree4ec211a0c0f9da7898dfea3eba51180ce5c781a3 /commands
parent395e56e6aa8f2169615e39daf7ff1ab69dfe3648 (diff)
downloadbarebox-b31a1b8e4fbc9e61cb906ebe6c3b8a739221dadc.tar.gz
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 <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/digest.c b/commands/digest.c
index 99b27dc..21a0917 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);