Explorar el Código

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 hace 20 años
padre
commit
a570b74e5b
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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)!");
 }