fix bug where going up in the root dir would get you back to the (unix) current dir (instead of staying at the root)

svn-id: r10689
This commit is contained in:
Max Horn
2003-10-08 22:47:41 +00:00
parent 6e09d35090
commit de74ceb60a
+5 -2
View File
@@ -161,10 +161,13 @@ FilesystemNode *POSIXFilesystemNode::parent() const {
const char *end = lastPathComponent(_path);
p->_path = String(start, end - start);
p->_isValid = true;
p->_isDirectory = true;
p->_displayName = lastPathComponent(p->_path);
} else {
p->_path = _path;
p->_displayName = _displayName;
}
p->_isValid = true;
p->_isDirectory = true;
return p;
}