From bf45dcb959a4afbfcfb158dea55acf3804c49ea9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 16 Apr 2011 20:27:08 +0200 Subject: [PATCH] only check for permissions for folders that exists --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 7e862b978b..05ff4040b9 100644 --- a/lib/base.php +++ b/lib/base.php @@ -292,7 +292,7 @@ class OC_UTIL { }else{ //TODO: premisions checks for windows hosts } - if(!is_writable($CONFIG_DATADIRECTORY_ROOT)){ + if(is_dir($CONFIG_DATADIRECTORY_ROOT) and !is_writable($CONFIG_DATADIRECTORY_ROOT)){ $errors[]=array('error'=>'Data directory ('.$CONFIG_DATADIRECTORY_ROOT.') not writable by ownCloud
','hint'=>$permissionsHint); }