From ece02eab368c2ed7bc4980a308b68de3d3bebae5 Mon Sep 17 00:00:00 2001 From: simond Date: Wed, 20 Mar 2002 15:58:03 +0000 Subject: [PATCH] Make error message a bit more useful git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2615 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/file_prefs.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/file_prefs.php b/functions/file_prefs.php index e0208cb1..6c7ac5a1 100644 --- a/functions/file_prefs.php +++ b/functions/file_prefs.php @@ -166,6 +166,9 @@ function checkForPrefs($data_dir, $username, $filename = '') { } else if (!@copy($default_pref, $filename)) { echo _("Error opening ") . $default_pref . '
'; echo _("Could not create initial preference file!") . "
\n"; + $user_data = posix_getpwuid(posix_getuid()); + $uid = $user_data['name']; + echo $data_dir . ' ' . _("should be writable by user") . ' ' . $uid . "
\n"; echo _("Please contact your system administrator and report this error.") . "
\n"; exit; } -- 2.25.1