From 3416ad2d2c50f629ea242d326729ff8179960a73 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Mon, 20 Oct 2014 16:34:45 +0200 Subject: [PATCH] avoid using Tomb's PID in temp files and double the random #150 --- tomb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tomb b/tomb index 4b9bff3..0fc23de 100755 --- a/tomb +++ b/tomb @@ -56,7 +56,7 @@ QRENCODE=1 MOUNTOPTS="rw,noatime,nodev" # prefix for temporary files -TMPPREFIX="/dev/shm/$$.$RANDOM." +TMPPREFIX="/dev/shm/$RANDOM.$RANDOM." # makes glob matching case insensitive unsetopt CASE_MATCH @@ -145,7 +145,7 @@ check_shm() { # setup a special env var for zsh to create temp files that will # then be deleted at the exit of each function using them. - TMPPREFIX="$SHMPREFIX/$$.$RANDOM." + TMPPREFIX="$SHMPREFIX/$RANDOM.$RANDOM." return 0 }