[Pkg-owncloud-commits] [owncloud] 214/457: dont apply callback wrapper when fopen failed

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:06:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 2d63fd77de1cbfdb0a3474cadf99f1dcf4962d5f
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed May 13 14:07:18 2015 +0200

    dont apply callback wrapper when fopen failed
---
 lib/private/files/view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index b1333b4..6bf864c 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -988,7 +988,7 @@ class View {
 					$this->updater->update($path, $extraParam);
 				}
 
-				if ($operation === 'fopen') {
+				if ($operation === 'fopen' and $result) {
 					$result = CallbackWrapper::wrap($result, null, null, function () use ($hooks, $path) {
 						if (in_array('write', $hooks)) {
 							$this->unlockFile($path, ILockingProvider::LOCK_EXCLUSIVE);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list