From bc876591b6e1451c6b7ac6ab1d0dad3f1445d759 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 12 Sep 2008 22:19:35 +0000 Subject: * drop trailing slashed from lock names as the respective file can't be created otherwise git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2216 95ad53e4-c205-0410-b2fa-d234c58c8868 --- lib/OpenSLX/Utils.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/OpenSLX/Utils.pm') 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; -- cgit v1.2.3-55-g7522