aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index ba9f5bc..bc810df 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -1055,7 +1055,7 @@ namespace build2
if (!(d ? dir_exists (p) : file_exists (p)))
return;
- for (;; ) // Retry/fallback loop.
+ for (;;) // Retry/fallback loop.
try
{
switch (m)
@@ -1078,7 +1078,8 @@ namespace build2
try_mkdir (to);
- for (const auto& de: dir_iterator (fr))
+ for (const auto& de: dir_iterator (fr,
+ false /* ignore_dangling */))
{
path f (fr / de.path ());
path t (to / de.path ());