diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-02-24 16:56:53 +0400 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-02-25 15:36:06 +0400 |
commit | 9183ade655d5b77ed4300a73f068685c2260fd8a (patch) | |
tree | 641b4ffc2de1114c0d2748e78463fadee7db8dc1 /lib | |
parent | 678afc4906382e8b7c18d4acf3b024b14c0c85aa (diff) |
don't overwrite keys if rename was done by a stream copy
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 8893911ed5d..a7e3f53ca19 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -531,6 +531,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) { |