From f4a7d9ed71a8bc415be08bd709002b3ac0913654 Mon Sep 17 00:00:00 2001 From: jbeta Date: Thu, 7 Nov 2013 21:52:49 +0000 Subject: 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. --- 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 3040a17..84ac2d6 100755 --- 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 } -- cgit v1.2.3