From 6f9b975f5613cd0dd6c744d7efdfe51e4113ab04 Mon Sep 17 00:00:00 2001 Message-Id: <6f9b975f5613cd0dd6c744d7efdfe51e4113ab04.1714846913.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 6 Oct 2012 23:22:06 +0100 Subject: [PATCH] ktype.seccure: Bodge around `permission denied' error in signing. Organization: Straylight/Edgeware From: Mark Wooding 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. --- ktype.seccure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 () { -- [mdw]