From: Mark Wooding Date: Sat, 6 Oct 2012 22:22:06 +0000 (+0100) Subject: ktype.seccure: Bodge around `permission denied' error in signing. X-Git-Tag: 0.99.2~3 X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-keys/commitdiff_plain/6f9b975f5613cd0dd6c744d7efdfe51e4113ab04?hp=c3571d12e2bdc8e0f57b1b2f0c9328b1b5cbab58 ktype.seccure: Bodge around `permission denied' error in signing. Not sure why /dev/stdout should be problematic, but avoid the problem using $(...) to provide a fresh and friendly stdout, and then echo to the existing file descriptor. --- diff --git a/ktype.seccure b/ktype.seccure index dfe5521..da51687 100644 --- a/ktype.seccure +++ b/ktype.seccure @@ -83,7 +83,8 @@ k_decrypt () { k_sign () { nub=$2 - run_seccure sign -q -c$kprop_curve -F"$nub" -s/dev/stdout + sig=$(run_seccure sign -q -c$kprop_curve -F"$nub" -s/dev/stdout) + echo "$sig" } k_verify () {