[Pkg-owncloud-commits] [owncloud] 10/75: fix fopen
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:08:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v3.0.1
in repository owncloud.
commit 7a94570ab8898f20de08477a69c14fd96680fa20
Author: Robin Appelman <icewind1991 at gmail.com>
Date: Sat Oct 22 14:10:15 2011 +0200
fix fopen
---
lib/filesystem.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/filesystem.php b/lib/filesystem.php
index b97fa8d..3d0c92e 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -361,9 +361,11 @@ class OC_Filesystem{
case 'a':
$hooks[]='write';
break;
+ default:
+ OC_Log::write('core','invalid mode ('.$mode.') for '.$path,OC_Log::ERROR);
}
- return self::basicOperation('fopen',$path,$hooks);
+ return self::basicOperation('fopen',$path,$hooks,$mode);
}
static public function toTmpFile($path){
if(OC_FileProxy::runPreProxies('toTmpFile',$path) and self::canRead($path) and $storage=self::getStorage($path)){
--
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