소스 검색

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 년 전
부모
커밋
a570b74e5b
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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)!");
 }