tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 5eebc89e48d47dab70f59f5c672b088149158f95
parent f0cd7f50a273837f2cdb120c26d722ff7b539ea8
Author: Jaromil <jaromil@dyne.org>
Date:   Sat,  3 Sep 2011 12:39:17 +0200

fix correct use of mktemp

Diffstat:
Msrc/tomb | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tomb b/src/tomb @@ -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" }