From b838dda1e1337353d88db7f1e1f67c0f0dc38e5a Mon Sep 17 00:00:00 2001
From: Sebastian Paul <sebastian.paul@maloon.de>
Date: Sat, 22 Sep 2012 13:20:44 +0200
Subject: [PATCH] index.php: chdir to drupalroot fix for symbolic link

---
 core/install.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/install.php b/core/install.php
index 6f046b2..d44f875 100644
--- a/core/install.php
+++ b/core/install.php
@@ -6,7 +6,8 @@
  */
 
 // Change the directory to the Drupal root.
-chdir('..');
+$script_name = $_SERVER['SCRIPT_FILENAME'];
+chdir(substr($script_name, 0, -17));
 
 /**
  * Defines the root directory of the Drupal installation.
-- 
1.7.10.4

