diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-12-08 21:13:47 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-12-12 18:28:02 +0300 |
commit | ab7dba520c8efd2cfbdd71dd91ae6b60923a12cd (patch) | |
tree | bb4cf6a252397c5aa1f0cf9ef7a3ab064b6079e6 /libbuild2/parser.cxx | |
parent | aeae50fe987b1787d1c1ae6f5c0bfb4f179205ef (diff) |
Adapt to dir_iterator API change
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index 13a3b12..dd2944d 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -6042,7 +6042,20 @@ namespace build2 try { - path_search (path (move (p)), process, *sp); + path_search (path (move (p)), + process, + *sp, + path_match_flags::follow_symlinks, + [] (const dir_entry& de) + { + bool sl (de.ltype () == entry_type::symlink); + + warn << "skipping " + << (sl ? "dangling symlink" : "inaccessible entry") + << ' ' << de.base () / de.path (); + + return true; + }); } catch (const system_error& e) { |