From: Paul Hänsch Date: Sat, 23 Jan 2021 01:20:08 +0000 (+0100) Subject: bugfix in lockdir setup X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=0e519e55b012aae6d997af65d947ffe6cf07ac42;p=lobster bugfix in lockdir setup --- diff --git a/session_lock.sh b/session_lock.sh index 17af0e6..de1641a 100644 --- a/session_lock.sh +++ b/session_lock.sh @@ -11,7 +11,7 @@ SLOCK(){ local tempfile="$lockdir/${SESSION_ID}" local lockexpire=$(( $(date +%s) - timeout )) - mkdir -p "$_DATA/lock/${file%/*}" + mkdir -p "${lockdir%/*}" if [ -e "$lockdir" ] \ && [ "$(stat -c %Y "$lockdir")" -lt "$lockexpire" ] \