summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-02-24 13:56:53 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-02-24 17:24:43 +0100
commitebd73aee8ff96f7252fab65ab4dc7230d2eb551c (patch)
tree089029cee5115dea63c3282e1aac1832b91289a2 /lib
parent11ca01403408413cbbe48c8d78c41802998868b7 (diff)
downloadnextcloud-server-ebd73aee8ff96f7252fab65ab4dc7230d2eb551c.tar.gz
nextcloud-server-ebd73aee8ff96f7252fab65ab4dc7230d2eb551c.zip
don't overwrite keys if rename was done by a stream copy
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 530aa8f7514..e2c565c5cbb 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -534,6 +534,8 @@ class View {
$source = $this->fopen($path1 . $postFix1, 'r');
$target = $this->fopen($path2 . $postFix2, 'w');
list($count, $result) = \OC_Helper::streamCopy($source, $target);
+ fclose($source);
+ fclose($target);
}
}
if ($this->shouldEmitHooks() && $result !== false) {