From de74ceb60acb166b61461d9a22d14b42138de416 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 8 Oct 2003 22:47:41 +0000 Subject: 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 --- backends/fs/posix/posix-fs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp index 26b3075436..43574ac818 100644 --- a/backends/fs/posix/posix-fs.cpp +++ b/backends/fs/posix/posix-fs.cpp @@ -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; } -- cgit v1.2.3