small fix in password processing

This commit is contained in:
Jaromil 2013-03-31 10:25:57 +02:00
parent a5d09a0559
commit fc84c27a49

View File

@ -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