From: Mark Wooding Date: Thu, 23 Feb 2012 02:54:24 +0000 (+0000) Subject: keyfunc.sh.in: Fix the OpenSSL `dgst' rune. X-Git-Tag: 0.99.2~23 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-keys/commitdiff_plain/37ba6d05cc2a4214ff2d447b26a7d6c98322842c keyfunc.sh.in: Fix the OpenSSL `dgst' rune. A compatibility hack was a nice idea, but it helps if you don't throw away the interesting answer and keep the boring and incompatible extra filename. --- diff --git a/keyfunc.sh.in b/keyfunc.sh.in index dda8a2e..02bc10d 100644 --- a/keyfunc.sh.in +++ b/keyfunc.sh.in @@ -322,6 +322,7 @@ nubid () { ## to demonstrate the same idiocy as GNU mumblesum. set _ $({ echo "distorted-keys nubid"; cat -; } | openssl dgst -${kprop_nubid_hash-sha256}) + if [ $# -gt 2 ]; then shift; fi echo $2 }