mktemp expects all options before a template. This prevented the
temporary file for "pass edit" mode from being created in /dev/shm.
---
 src/password-store.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/password-store.sh b/src/password-store.sh
index 2500253..c1eb378 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -109,13 +109,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
 
 }
-- 
1.8.4.2

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to