commands: digest: don't be to restrictive with the length of verification files
PATCH 1/1 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 <[email protected]>
--- commands/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
commands/digest.c +1 -1
@@ -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);
Signature · 7 lines
2.24.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 lines · Hubert Feurstein
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 <[email protected]>--- commands/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox