aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-22 14:10:15 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-23 11:35:29 +0200
commit38bb503ff6fd07fe5c65e5f06add98663d9cdf3e (patch)
treef9ed2359760da64899bd7d5b32b194971ce7c12b /lib/filesystem.php
parent74740fb71ae6de34c5ab6cc14fe7284599360fc9 (diff)
downloadnextcloud-server-38bb503ff6fd07fe5c65e5f06add98663d9cdf3e.tar.gz
nextcloud-server-38bb503ff6fd07fe5c65e5f06add98663d9cdf3e.zip
fix fopen
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 3497431f1ee..cae8ead5b16 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -366,9 +366,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)){