summarylogtreecommitdiffstats
path: root/ps-fix-double-slash-319_all.patch
blob: 17f3e2bc182da47a1e53ca250c55be311cb2ab73 (plain)
1
2
3
4
5
6
7
--- a/src/core/manager.cc
+++ b/src/core/manager.cc
@@ -418,3 +418,3 @@ path_expand(std::vector<std::string>* paths, const std::string& pattern) {
 
-      std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->path() + "/"));
+      std::transform(itr->begin(), itr->end(), std::back_inserter(nextCache), rak::bind1st(std::ptr_fun(&path_expand_transform), itr->path() + (itr->path() == "/" ? "" : "/")));
     }