[Pkg-owncloud-commits] [php-sabredav] 61/163: A few more missing LOCK_UN calls
David Prévot
taffit at moszumanska.debian.org
Tue May 20 18:54:54 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag upstream/2.0.0_beta1
in repository php-sabredav.
commit 462c7bf31f78d7cf3b3ef00b18f251021e8d12d2
Author: Markus Staab <markus.staab at redaxo.de>
Date: Sun Apr 13 19:07:10 2014 +0200
A few more missing LOCK_UN calls
---
lib/Sabre/DAV/Locks/Backend/File.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/Sabre/DAV/Locks/Backend/File.php b/lib/Sabre/DAV/Locks/Backend/File.php
index 9ac7e06..f87488e 100644
--- a/lib/Sabre/DAV/Locks/Backend/File.php
+++ b/lib/Sabre/DAV/Locks/Backend/File.php
@@ -149,6 +149,7 @@ class File extends AbstractBackend {
$data = stream_get_contents($handle);
// We're all good
+ flock($handle,LOCK_UN);
fclose($handle);
// Unserializing and checking if the resource file contains data for this file
@@ -175,9 +176,9 @@ class File extends AbstractBackend {
rewind($handle);
fwrite($handle,serialize($newData));
+ flock($handle,LOCK_UN);
fclose($handle);
}
}
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list