From f5375c61fe5417bf6ab45d2bf41f9e8b8ae27098 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Mon, 26 Dec 2016 19:04:54 +0100 Subject: [PATCH] improvement over previous gpg_decrypt fix now also avoiding the use of `read` shell built-in --- tomb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tomb b/tomb index e36a257..7e0390a 100755 --- 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