tfix correct use of mktemp - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 5eebc89e48d47dab70f59f5c672b088149158f95 DIR parent f0cd7f50a273837f2cdb120c26d722ff7b539ea8 HTML Author: Jaromil <jaromil@dyne.org> Date: Sat, 3 Sep 2011 12:39:17 +0200 fix correct use of mktemp Diffstat: M src/tomb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/src/tomb b/src/tomb t@@ -116,10 +116,10 @@ check_bin() { safe_dir() { which mktemp &> /dev/null if [[ $? = 0 ]]; then - mktemp -d /dev/shm/$1.XXXX.$$ + mktemp -d /dev/shm/$1.$$.XXXXXXX return fi - dir="/dev/shm/$1.$RANDOM.$RANDOM.$$" + dir="/dev/shm/$1.$$.$RANDOM.$RANDOM" (umask 077 && mkdir "$dir") || print "-1" print "$dir" }