From: Hubert Feurstein <h.feurstein@gmail.com>
To: barebox@lists.infradead.org
Cc: Hubert Feurstein <h.feurstein@gmail.com>
Subject: [PATCH] commands: digest: don't be to restrictive with the length of verification files
Date: Tue, 10 Dec 2019 18:36:01 +0100 [thread overview]
Message-ID: <20191210173601.26166-1-h.feurstein@gmail.com> (raw)
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>
---
commands/digest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/digest.c b/commands/digest.c
index 99b27dcc2..21a091717 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);
--
2.24.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2019-12-10 17:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-10 17:36 Hubert Feurstein [this message]
2019-12-11 8:41 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191210173601.26166-1-h.feurstein@gmail.com \
--to=h.feurstein@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox