timprovement over previous gpg_decrypt fix - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit f5375c61fe5417bf6ab45d2bf41f9e8b8ae27098 DIR parent df75c39a584d05eba4f7c575d0b5b650bf2c9b01 HTML 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: M tomb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/tomb b/tomb t@@ -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