Browse Source

data_dir doesn't need to be readable. It has to executable, but that's
not cleanly testable in PHP so it seems..

Thijs Kinkhorst 20 năm trước cách đây
mục cha
commit
a570b74e5b
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      src/configtest.php

+ 1 - 3
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)!");
 }