From ccfa9a4fd0d0cbfabe147ea4b70fbd28af1eceda Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 17 May 2018 20:24:30 +0300 Subject: Pass ignore_dangling flag to dir_iterator() ctor --- bbot/agent/agent.cxx | 8 +++++--- 1 file 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; } } -- cgit v1.1