]> git.plutz.net Git - lobster/commitdiff
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 17af0e602a8e0dd017d8d48f9c868dbcabb6bc8d..de1641af493e5f679a8b9ba91a1c7f9c8f2b109f 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" ] \