improvement over previous gpg_decrypt fix

now also avoiding the use of `read` shell built-in
This commit is contained in:
Jaromil 2016-12-26 19:04:54 +01:00
parent df75c39a58
commit f5375c61fe

5
tomb
View File

@ -933,11 +933,10 @@ gpg_decrypt() {
_tmp_create
tmpres=$TOMBTMP
print - "$gpgpass" | \
TOMBSECRET=`print - "$gpgpass" | \
gpg --batch --passphrase-fd 0 --no-tty --no-options \
--status-fd 2 --no-mdc-warning --no-permission-warning \
--no-secmem-warning 2> $tmpres \
| read -r -d'\n' TOMBSECRET
--no-secmem-warning 2> $tmpres`
unset gpgpass