FreeBSD Bugzilla – Attachment 235498 Details for
Bug 265461
"skein* -q -c <string> <file>" command returns 0 exit code with '-q' and with incorrect skein string
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Make skein256 -q -c <hash> return 2 on mismatch
md5sum.c.diff (text/plain), 441 bytes, created by
Stefan Eßer
on 2022-07-26 20:45:13 UTC
(
hide
)
Description:
Make skein256 -q -c <hash> return 2 on mismatch
Filename:
MIME Type:
Creator:
Stefan Eßer
Created:
2022-07-26 20:45:13 UTC
Size:
441 bytes
patch
obsolete
>diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c >index 7235e6e0a39f..97c587efd63c 100644 >--- a/sbin/md5/md5.c >+++ b/sbin/md5/md5.c >@@ -436,6 +436,8 @@ MDOutput(const Algorithm_t *alg, char *p, char *argv[]) > printf("%s: %s\n", *argv, checkfailed ? "FAILED" : "OK"); > } else if (qflag || argv == NULL) { > printf("%s\n", p); >+ if (cflag) >+ checkfailed = strcasecmp(checkAgainst, p) != 0; > } else { > if (rflag) > if (gnu_emu)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
se
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 265461
: 235498