From: kink Date: Mon, 24 Jan 2005 19:16:54 +0000 (+0000) Subject: data_dir doesn't need to be readable. It has to executable, but that's X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d4eaadbe7c054eee5d869ff29ffc8775bfcaffe9;hp=2fd96e6b1e3f337189d7a1a9561f1e8e2d1204c9;p=squirrelmail.git data_dir doesn't need to be readable. It has to executable, but that's not cleanly testable in PHP so it seems.. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8703 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/configtest.php b/src/configtest.php index b02a316b..e65c147c 100644 --- a/src/configtest.php +++ b/src/configtest.php @@ -122,9 +122,7 @@ if(!file_exists($data_dir)) { if(!is_dir($data_dir)) { do_err("Data dir ($data_dir) is not a directory!"); } -if(!is_readable($data_dir)) { - do_err("I cannot read from data dir ($data_dir)!"); -} +// datadir should be executable - but no clean way to test on that if(!is_writable($data_dir)) { do_err("I cannot write to data dir ($data_dir)!"); }