bugfix in lockdir setup
authorPaul Hänsch <paul@plutz.net>
Sat, 23 Jan 2021 01:20:08 +0000 (02:20 +0100)
committerPaul Hänsch <paul@plutz.net>
Sat, 23 Jan 2021 01:20:08 +0000 (02:20 +0100)
session_lock.sh

index 17af0e6..de1641a 100644 (file)
@@ -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" ] \