From 0e519e55b012aae6d997af65d947ffe6cf07ac42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 23 Jan 2021 02:20:08 +0100 Subject: [PATCH] bugfix in lockdir setup --- session_lock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ] \ -- 2.39.2