From: Mikko Rasa Date: Fri, 22 Sep 2006 11:05:50 +0000 (+0000) Subject: Add a missing ! to make .. components to behave correctly X-Git-Tag: fs-1.0~16 X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=da904316fb2ed4e2d084726e20f514f6faf956f7 Add a missing ! to make .. components to behave correctly --- diff --git a/source/path.cpp b/source/path.cpp index 6127f7a..e79a8fe 100644 --- a/source/path.cpp +++ b/source/path.cpp @@ -155,7 +155,7 @@ void Path::add_component(const string &comp) { unsigned slash=path.rfind(DIRCHAR); unsigned start=(slash==string::npos)?0:slash+1; - if(path.compare(start, string::npos, "..")) + if(!path.compare(start, string::npos, "..")) { // If the last component already is a .., add another path+=DIRCHAR;