[Pkg-owncloud-commits] [owncloud] 34/67: don't increase the size of the users home folder twice
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:10:38 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.
commit e65ea6a8b7360066eaabf172087755f2cc607598
Author: Robin Appelman <icewind at owncloud.com>
Date: Sat Oct 13 14:32:58 2012 +0200
don't increase the size of the users home folder twice
---
lib/filecache/update.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/filecache/update.php b/lib/filecache/update.php
index 1b81f70..4a5ea87 100644
--- a/lib/filecache/update.php
+++ b/lib/filecache/update.php
@@ -174,7 +174,9 @@ class OC_FileCache_Update{
}else{
$size=OC_FileCache::scanFile($path, $root);
}
- OC_FileCache::increaseSize(dirname($path), $size-$cachedSize, $root);
+ if($path !== '' and $path !== '/'){
+ OC_FileCache::increaseSize(dirname($path), $size-$cachedSize, $root);
+ }
}
/**
--
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