aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/system.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system.ml b/lib/system.ml
index bb3c711307..81dda51f9d 100644
--- a/lib/system.ml
+++ b/lib/system.ml
@@ -30,7 +30,8 @@ let all_subdirs root =
try
while true do
let f = readdir dirh in
- if f <> "." && f <> ".." && (not Coq_config.local or (f <> "CVS")) then
+ if f <> "" && f.[0] <> '.' && (not Coq_config.local or (f <> "CVS"))
+ then
let file = Filename.concat dir f in
try
if (stat file).st_kind = S_DIR then begin