tsmall fix in password processing - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit fc84c27a49b0b294eda66eae495ef6b790dc6202
DIR parent a5d09a055977ae544f940dd8e5fcca14a531c820
HTML Author: Jaromil <jaromil@dyne.org>
Date: Sun, 31 Mar 2013 10:25:57 +0200
small fix in password processing
Diffstat:
M src/tomb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/src/tomb b/src/tomb
t@@ -1032,9 +1032,9 @@ get_lukskey() {
;;
esac
fi
- gpg --batch --passphrase-fd 0 --no-tty --no-options --status-fd 1 -d "${keyfile}" \
- <<< ${tombpass} \
- | grep 'DECRYPTION_OKAY'
+ print ${tombpass} | \
+ gpg --batch --passphrase-fd 0 --no-tty --no-options --status-fd 2 \
+ -d "${keyfile}" 2> /dev/null
ret=$?
xxx "gpg decryption returns $ret"
unset tombpass