From b6f166c4ed98f94bdd2cc82885d61173a101abfd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Jul 2016 15:12:54 +0200 Subject: Redesign path to store trailing slash for directories --- butl/process.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'butl/process.cxx') diff --git a/butl/process.cxx b/butl/process.cxx index 9bb0ea2..5c9a0f0 100644 --- a/butl/process.cxx +++ b/butl/process.cxx @@ -281,13 +281,13 @@ namespace butl for (size_t b (0), e (paths.find (traits::path_separator)); b != string::npos;) { - path p (string (paths, b, e != string::npos ? e - b : e)); + dir_path p (string (paths, b, e != string::npos ? e - b : e)); // Empty path (i.e., a double colon or a colon at the beginning or end // of PATH) means search in the current dirrectory. // if (p.empty ()) - p = path ("."); + p = dir_path ("."); path dp (p / f); -- cgit v1.1