From: Mikko Rasa Date: Sun, 26 Jul 2015 16:58:38 +0000 (+0300) Subject: Make fix_case to work with relative paths X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=06fa898a10cf019f73a14890ee2818bdce27495b;p=libs%2Fcore.git Make fix_case to work with relative paths --- 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 {