Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2022 20:45:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 265461] "skein* -q -c <string> <file>" command returns 0 exit code with '-q' and with incorrect skein string
Message-ID:  <bug-265461-227-GTOhsFqfbG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-265461-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-265461-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265461

Stefan E=C3=9Fer <se@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |se@FreeBSD.org
 Attachment #235498|                            |maintainer-approval+
              Flags|                            |

--- Comment #4 from Stefan E=C3=9Fer <se@FreeBSD.org> ---
Created attachment 235498
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235498&action=
=3Dedit
Make skein256 -q -c <hash> return 2 on mismatch

The man page does not state that skein256 -q -c <hash> should an return
non-zero exit status if the passed hash does not match the contents of the
file.

But it seems obvious, that this was an oversight. If the -c option is ignor=
ed
if combined with -q, it should not be rejected to let the user know that the
combination is not supported.

The attached patch makes -q -c <hash> do what the man page says: it prints =
the
calculated hash. And it adds the exist status that results from the check
performed by the -c <hash> option.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265461-227-GTOhsFqfbG>