summaryrefslogtreecommitdiff
path: root/www/p5-Apache-Session/files/patch-Session::Lock::File.pm
diff options
context:
space:
mode:
Diffstat (limited to 'www/p5-Apache-Session/files/patch-Session::Lock::File.pm')
-rw-r--r--www/p5-Apache-Session/files/patch-Session::Lock::File.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/www/p5-Apache-Session/files/patch-Session::Lock::File.pm b/www/p5-Apache-Session/files/patch-Session::Lock::File.pm
new file mode 100644
index 000000000000..aea3c01aad72
--- /dev/null
+++ b/www/p5-Apache-Session/files/patch-Session::Lock::File.pm
@@ -0,0 +1,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;