diff options
author | Oliver Tappe | 2008-09-13 00:19:35 +0200 |
---|---|---|
committer | Oliver Tappe | 2008-09-13 00:19:35 +0200 |
commit | bc876591b6e1451c6b7ac6ab1d0dad3f1445d759 (patch) | |
tree | 728a1b025c689b306ad5b28ff0fb9133adae6064 /lib/OpenSLX/Utils.pm | |
parent | * instead of using rm -r to remove a vendor-OS folder, we now use a combination (diff) | |
download | core-bc876591b6e1451c6b7ac6ab1d0dad3f1445d759.tar.gz core-bc876591b6e1451c6b7ac6ab1d0dad3f1445d759.tar.xz core-bc876591b6e1451c6b7ac6ab1d0dad3f1445d759.zip |
* 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
Diffstat (limited to 'lib/OpenSLX/Utils.pm')
-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; |