From a3d9e6de3935f20d67e9021eb383fb5950cbe5bb Mon Sep 17 00:00:00 2001 From: Florian Schunk Date: Thu, 10 Jan 2019 00:25:07 +0100 Subject: [PATCH] don't close input stream when writing in encrypted file Signed-off-by: Florian Schunk --- lib/private/Files/Storage/Wrapper/Encryption.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php index e1c1225e0cca0..5485b80985bdd 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -1033,7 +1033,6 @@ public function writeStream(string $path, $stream, int $size = null): int { // always fall back to fopen $target = $this->fopen($path, 'w'); list($count, $result) = \OC_Helper::streamCopy($stream, $target); - fclose($stream); fclose($target); return $count; }