summaryrefslogtreecommitdiffstats
path: root/www/p5-Apache-Session/files/patch-Session::Lock::File.pm
blob: aea3c01aad72d9ce1c5119aa5e22c84fccc0c150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- Session/Lock/File.pm.orig	Sat Sep  2 00:21:17 2000
+++ Session/Lock/File.pm	Thu Dec  6 17:37:40 2001
@@ -36,8 +36,9 @@
         
         my $LockDirectory = $session->{args}->{LockDirectory} || 
             $Apache::Session::Lock::File::LockDirectory;
+        my $LockFile = $LockDirectory."/Apache-Session-".$session->{data}->{_session_id}.".lock";
             
-        open($fh, "+>".$LockDirectory."/Apache-Session-".$session->{data}->{_session_id}.".lock") || die $!;
+        open($fh, "+> $LockFile") || die "$LockFile: $!";
 
         $self->{fh} = $fh;
         $self->{opened} = 1;
@@ -58,8 +59,9 @@
         
         my $LockDirectory = $session->{args}->{LockDirectory} || 
             $Apache::Session::Lock::File::LockDirectory;
+        my $LockFile = $LockDirectory."/Apache-Session-".$session->{data}->{_session_id}.".lock";
             
-        open($fh, "+>".$LockDirectory."/Apache-Session-".$session->{data}->{_session_id}.".lock") || die $!;
+        open($fh, "+> $LockFile") || die "$LockFile: $!";
 
         $self->{fh} = $fh;
         $self->{opened} = 1;
OpenPOWER on IntegriCloud