X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Futils.cpp;h=1d663b77183cc2c4abcbbc68c9e7a44a75109429;hp=ed1ca0ab27c3e3c14070b88822e50cc742ca067c;hb=06fa898a10cf019f73a14890ee2818bdce27495b;hpb=ab9e61f0bc6ed09dae52f538dc6927c54b9216df 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 {