mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-12 07:46:28 +00:00
improvement over previous gpg_decrypt fix
now also avoiding the use of `read` shell built-in
This commit is contained in:
parent
df75c39a58
commit
f5375c61fe
5
tomb
5
tomb
@ -933,11 +933,10 @@ gpg_decrypt() {
|
|||||||
|
|
||||||
_tmp_create
|
_tmp_create
|
||||||
tmpres=$TOMBTMP
|
tmpres=$TOMBTMP
|
||||||
print - "$gpgpass" | \
|
TOMBSECRET=`print - "$gpgpass" | \
|
||||||
gpg --batch --passphrase-fd 0 --no-tty --no-options \
|
gpg --batch --passphrase-fd 0 --no-tty --no-options \
|
||||||
--status-fd 2 --no-mdc-warning --no-permission-warning \
|
--status-fd 2 --no-mdc-warning --no-permission-warning \
|
||||||
--no-secmem-warning 2> $tmpres \
|
--no-secmem-warning 2> $tmpres`
|
||||||
| read -r -d'\n' TOMBSECRET
|
|
||||||
|
|
||||||
unset gpgpass
|
unset gpgpass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user