[Pkg-owncloud-commits] [php-sabredav] 63/163: Mooaarr unlock
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 b388cf304bf3376f05840625a40e42922edc24ec
Author: Markus Staab <markus.staab at redaxo.de>
Date: Sun Apr 13 19:10:11 2014 +0200
Mooaarr unlock
---
lib/Sabre/DAV/Locks/Backend/FS.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/Sabre/DAV/Locks/Backend/FS.php b/lib/Sabre/DAV/Locks/Backend/FS.php
index a9b0aaa..37d849a 100644
--- a/lib/Sabre/DAV/Locks/Backend/FS.php
+++ b/lib/Sabre/DAV/Locks/Backend/FS.php
@@ -158,6 +158,7 @@ class FS extends AbstractBackend {
}
// We're all good
+ flock($handle,LOCK_UN);
fclose($handle);
// Unserializing and checking if the resource file contains data for this file
@@ -185,9 +186,9 @@ class FS 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