From 55764e395c453b537c08c1e5cadfbb2ddd349279 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 28 Sep 2019 20:45:34 +0300 Subject: Swap entry and pattern parameters in path_match() --- libbutl/filesystem.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbutl/filesystem.cxx') diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx index 9769124..832e1b6 100644 --- a/libbutl/filesystem.cxx +++ b/libbutl/filesystem.cxx @@ -1798,7 +1798,7 @@ namespace butl } bool - path_match (const string& pattern, const string& name) + path_match (const string& name, const string& pattern) { // Implementation notes: // @@ -1993,7 +1993,7 @@ namespace butl ? pattern_dir : filesystem.start_dir ())); - if (!path_match (pcr, se.leaf ().representation ())) + if (!path_match (se.leaf ().representation (), pcr)) continue; // If the callback function returns false, then we stop the entire search @@ -2469,8 +2469,8 @@ namespace butl } bool - path_match (const path& pattern, - const path& entry, + path_match (const path& entry, + const path& pattern, const dir_path& start, path_match_flags flags) { -- cgit v1.1