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 esac
fi fi
gpg --batch --passphrase-fd 0 --no-tty --no-options --status-fd 1 -d "${keyfile}" \ print ${tombpass} | \
<<< ${tombpass} \ gpg --batch --passphrase-fd 0 --no-tty --no-options --status-fd 2 \
| grep 'DECRYPTION_OKAY' -d "${keyfile}" 2> /dev/null
ret=$? ret=$?
xxx "gpg decryption returns $ret" xxx "gpg decryption returns $ret"
unset tombpass unset tombpass