From 94bd8f38d5cbecd479e26928ca110f0bf1f64519 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 8 Dec 2022 21:14:35 +0300 Subject: Adapt to dir_iterator API change --- bpkg/manifest-utility.cxx | 3 +-- bpkg/rep-create.cxx | 2 +- bpkg/rep-remove.cxx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'bpkg') diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx index 5bd273d..7a431b3 100644 --- a/bpkg/manifest-utility.cxx +++ b/bpkg/manifest-utility.cxx @@ -373,8 +373,7 @@ namespace bpkg { vector> r; - for (const dir_entry& de: - dir_iterator (config, false /* ignore_dangling */)) + for (const dir_entry& de: dir_iterator (config, dir_iterator::no_follow)) { if (de.type () == entry_type::regular) { diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index 6c95679..67cca95 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -58,7 +58,7 @@ namespace bpkg { tracer trace ("collect"); - for (const dir_entry& de: dir_iterator (d, false /* ignore_dangling */)) + for (const dir_entry& de: dir_iterator (d, dir_iterator::no_follow)) { path p (de.path ()); diff --git a/bpkg/rep-remove.cxx b/bpkg/rep-remove.cxx index 26d5725..700534f 100644 --- a/bpkg/rep-remove.cxx +++ b/bpkg/rep-remove.cxx @@ -336,7 +336,7 @@ namespace bpkg try { - for (const dir_entry& de: dir_iterator (rd, false /* ignore_dangling */)) + for (const dir_entry& de: dir_iterator (rd, dir_iterator::no_follow)) { if (de.ltype () == entry_type::directory) rmdir (db.config_orig, rd / path_cast (de.path ())); -- cgit v1.1