diff options
-rw-r--r-- | lib/OpenSLX/Utils.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/OpenSLX/Utils.pm b/lib/OpenSLX/Utils.pm index 0ce253b9..b85d6bc1 100644 --- a/lib/OpenSLX/Utils.pm +++ b/lib/OpenSLX/Utils.pm @@ -597,6 +597,9 @@ sub grabLock my $lockPath = "$openslxConfig{'private-path'}/locks"; mkpath($lockPath) unless -e $lockPath; + + # drop any trailing slashes from lock name: + $lockName =~ s{/+$}{}; my $lockFile = "$lockPath/$lockName"; my $lockFH; |