summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbeta <alu0100403053@ull.edu.es>2013-11-07 21:52:49 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-20 02:24:17 -0600
commitf4a7d9ed71a8bc415be08bd709002b3ac0913654 (patch)
tree83464449d75c23b137b946b08734a8bf13b1d291
parent072bbc617bdcbaa0cc643a67676916ac99116172 (diff)
downloadpass-f4a7d9ed71a8bc415be08bd709002b3ac0913654.tar.gz
pass-f4a7d9ed71a8bc415be08bd709002b3ac0913654.tar.bz2
pass-f4a7d9ed71a8bc415be08bd709002b3ac0913654.zip
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 (limited to '')
-rwxr-xr-xsrc/password-store.sh4
1 files 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
}