diff options
author | Hubert Feurstein <h.feurstein@gmail.com> | 2019-12-10 18:36:01 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-11 09:39:54 +0100 |
commit | b31a1b8e4fbc9e61cb906ebe6c3b8a739221dadc (patch) | |
tree | 4ec211a0c0f9da7898dfea3eba51180ce5c781a3 | |
parent | 395e56e6aa8f2169615e39daf7ff1ab69dfe3648 (diff) | |
download | barebox-b31a1b8e4fbc9e61cb906ebe6c3b8a739221dadc.tar.gz barebox-b31a1b8e4fbc9e61cb906ebe6c3b8a739221dadc.tar.xz |
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>
-rw-r--r-- | commands/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |