aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-17 20:24:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-17 20:24:30 +0300
commitccfa9a4fd0d0cbfabe147ea4b70fbd28af1eceda (patch)
tree20df17f8fe4f25b3edf873424f176173ba3bf93c
parent62c7b99782677c5412b206a4d88ffb4e4dacb25f (diff)
Pass ignore_dangling flag to dir_iterator() ctor
-rw-r--r--bbot/agent/agent.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx
index 6d5f034..23759e8 100644
--- a/bbot/agent/agent.cxx
+++ b/bbot/agent/agent.cxx
@@ -334,7 +334,8 @@ try
// The first level are machine volumes.
//
- for (const dir_entry& ve: dir_iterator (machines))
+ for (const dir_entry& ve: dir_iterator (machines,
+ false /* ignore_dangling */))
{
const string vn (ve.path ().string ());
@@ -349,7 +350,8 @@ try
//
try
{
- for (const dir_entry& me: dir_iterator (vd))
+ for (const dir_entry& me: dir_iterator (vd,
+ false /* ignore_dangling */))
{
const string mn (me.path ().string ());
@@ -583,7 +585,7 @@ try
}
catch (const system_error& e)
{
- fail << "unable to iterate over " << vd << ": " << e << endf;
+ fail << "unable to iterate over " << vd << ": " << e;
}
}