From 06fa898a10cf019f73a14890ee2818bdce27495b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 26 Jul 2015 19:58:38 +0300 Subject: [PATCH] Make fix_case to work with relative paths --- source/fs/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fs/utils.cpp b/source/fs/utils.cpp index ed1ca0a..1d663b7 100644 --- a/source/fs/utils.cpp +++ b/source/fs/utils.cpp @@ -43,7 +43,7 @@ Path fix_case(const Path &path) Path result; for(Path::Iterator i=path.begin(); i!=path.end(); ++i) { - if(!found || *i=="/") + if(!found || (result.empty() && (*i=="/" || *i=="."))) result /= *i; else { -- 2.43.0