[Pkg-owncloud-commits] [owncloud] 97/165: set size and unencrypted size to zero on fopen
David Prévot
taffit at moszumanska.debian.org
Thu Apr 23 04:06:39 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 7fe0e09d146b2d20aac840af9c5a4796f96fde84
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Mon Apr 20 10:47:40 2015 +0200
set size and unencrypted size to zero on fopen
---
lib/private/files/stream/encryption.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index 9ba98e6..08ca54a 100644
--- a/lib/private/files/stream/encryption.php
+++ b/lib/private/files/stream/encryption.php
@@ -223,9 +223,8 @@ class Encryption extends Wrapper {
|| $mode === 'wb+'
) {
// We're writing a new file so start write counter with 0 bytes
- // TODO can we remove this completely?
- //$this->unencryptedSize = 0;
- //$this->size = 0;
+ $this->unencryptedSize = 0;
+ $this->size = 0;
$this->readOnly = false;
} else {
$this->readOnly = true;
--
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