Przeglądaj źródła

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 lat temu
rodzic
commit
a570b74e5b
1 zmienionych plików z 1 dodań i 3 usunięć
  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)!");
 }