password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit f4a7d9ed71a8bc415be08bd709002b3ac0913654
parent 072bbc617bdcbaa0cc643a67676916ac99116172
Author: jbeta <alu0100403053@ull.edu.es>
Date:   Thu,  7 Nov 2013 21:52:49 +0000

Fix argument order for mktemp

mktemp expects all options before a template. This prevented the
temporary file for "pass edit" mode from being created in /dev/shm.

Diffstat:
Msrc/password-store.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/password-store.sh b/src/password-store.sh @@ -140,13 +140,13 @@ clip() { } tmpdir() { if [[ -d /dev/shm && -w /dev/shm && -x /dev/shm ]]; then - tmp_dir="$(TMPDIR=/dev/shm mktemp -t "$template" -d)" + tmp_dir="$(TMPDIR=/dev/shm mktemp -d -t "$template")" else yesno "$(echo "Your system does not have /dev/shm, which means that it may" echo "be difficult to entirely erase the temporary non-encrypted" echo "password file after editing. Are you sure you would like to" echo -n "continue?")" - tmp_dir="$(mktemp -t "$template" -d)" + tmp_dir="$(mktemp -d -t "$template")" fi }