[Pkg-owncloud-commits] [owncloud] 37/52: Fixed touch after chunk assembling

David Prévot taffit at moszumanska.debian.org
Mon Dec 2 01:49:40 UTC 2013


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

taffit pushed a commit to branch master
in repository owncloud.

commit 80d2371f971a9c35bee5bebb272d73ad0fb7fc83
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Fri Nov 29 16:28:42 2013 +0100

    Fixed touch after chunk assembling
    
    Fixed touch after chunk assembling which was using the wrong path,
    resulting in the creation of an extra file.
    
    Fixes #6007
---
 lib/private/connector/sabre/file.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index 26b5d20..295575f 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -249,7 +249,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
 			// allow sync clients to send the mtime along in a header
 			$mtime = OC_Request::hasModificationTime();
 			if ($mtime !== false) {
-				if($fs->touch($this->path, $mtime)) {
+				if($fs->touch($targetPath, $mtime)) {
 					header('X-OC-MTime: accepted');
 				}
 			}

-- 
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