Make error message a bit more useful
authorsimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 20 Mar 2002 15:58:03 +0000 (15:58 +0000)
committersimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 20 Mar 2002 15:58:03 +0000 (15:58 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2615 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/file_prefs.php

index e0208cb1d61bf6b0abf25917c12a9f166de57e5f..6c7ac5a1882bf98c42928e4c53a78a74def18d54 100644 (file)
@@ -166,6 +166,9 @@ function checkForPrefs($data_dir, $username, $filename = '') {
         } else if (!@copy($default_pref, $filename)) {
             echo _("Error opening ") . $default_pref . '<br>';
             echo _("Could not create initial preference file!") . "<br>\n";
+            $user_data = posix_getpwuid(posix_getuid());
+            $uid = $user_data['name'];
+            echo $data_dir . ' ' . _("should be writable by user") . ' ' . $uid . "<br>\n";
             echo _("Please contact your system administrator and report this error.") . "<br>\n";
             exit;
         }