From 3d546db14184e599cb872887936e4f0399db6699 Mon Sep 17 00:00:00 2001
From: Robin <robin@Amaya.(none)>
Date: Sat, 22 May 2010 23:45:58 +0200
Subject: [PATCH] do not give the 'can't write config file' error when the
 config file doesn't exsist

---
 inc/lib_base.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/lib_base.php b/inc/lib_base.php
index 506bca2210..3a8ad7163f 100755
--- a/inc/lib_base.php
+++ b/inc/lib_base.php
@@ -152,7 +152,7 @@ class OC_UTIL {
     global $CONFIG_BACKUPDIRECTORY;
     global $CONFIG_ENABLEBACKUP;
     $error='';
-    $f=@fopen($SERVERROOT.'/config/config.php','a+');
+    $f=@fopen($SERVERROOT.'/config/config.php','w+');
     if(!$f) $error.='Error: Config file (config/config.php) is not writable for the webserver.<br/>';
     @fclose($f);
     if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){
-- 
GitLab