tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit f5375c61fe5417bf6ab45d2bf41f9e8b8ae27098
parent df75c39a584d05eba4f7c575d0b5b650bf2c9b01
Author: Jaromil <jaromil@dyne.org>
Date:   Mon, 26 Dec 2016 19:04:54 +0100

improvement over previous gpg_decrypt fix

now also avoiding the use of `read` shell built-in

Diffstat:
Mtomb | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tomb b/tomb @@ -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