Skip to content
Snippets Groups Projects
Commit 38bb503f authored by Robin Appelman's avatar Robin Appelman
Browse files

fix fopen

parent 74740fb7
No related branches found
No related tags found
No related merge requests found
...@@ -366,9 +366,11 @@ class OC_Filesystem{ ...@@ -366,9 +366,11 @@ class OC_Filesystem{
case 'a': case 'a':
$hooks[]='write'; $hooks[]='write';
break; 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){ static public function toTmpFile($path){
if(OC_FileProxy::runPreProxies('toTmpFile',$path) and self::canRead($path) and $storage=self::getStorage($path)){ if(OC_FileProxy::runPreProxies('toTmpFile',$path) and self::canRead($path) and $storage=self::getStorage($path)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment