Skip to content

Commit 12aa416

Browse files
authored
Merge pull request #515 from mcserep/search_boost
Skip circular symlinks
2 parents 3b716e1 + c8dde33 commit 12aa416

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

util/src/parserutil.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ bool iterateDirectoryRecursive(
5050

5151
fs::path p(path_);
5252

53+
boost::system::error_code ec;
54+
auto target = fs::canonical(p, ec);
55+
if (ec)
56+
{
57+
LOG(warning) << p << ": " << ec.message();
58+
return true;
59+
}
60+
5361
if (!fs::exists(p))
5462
{
5563
LOG(warning) << "Not found: " << p;

0 commit comments

Comments
 (0)