From b94b5381f68061121c22f2786ba1fa774f1ee6f6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 30 Jul 2016 17:25:23 +0200 Subject: Convert to use canonical directory separators --- bpkg/utility.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bpkg/utility.cxx') diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index 57a299b..9bf1a5a 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -16,6 +16,9 @@ using namespace butl; namespace bpkg { + const dir_path bpkg_dir (".bpkg"); + const dir_path certs_dir (dir_path (bpkg_dir) /= "certs"); + bool yn_prompt (const char* prompt, char def) { @@ -229,7 +232,9 @@ namespace bpkg // if (v[0] != '!') { - storage.push_back (c.string () + "/:" + v); + // Use path representation to get canonical trailing slash. + // + storage.push_back (c.representation () + ':' + v); args.push_back (storage.back ().c_str ()); } else -- cgit v1.1