git://scientific.zcu.cz
/
dmlite-plugins-vfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
729c580
)
Insidious error in getParent(), but the bug probably didn't surface.
author
František Dvořák
<valtri@civ.zcu.cz>
Tue, 15 Oct 2013 11:35:28 +0000
(13:35 +0200)
committer
František Dvořák
<valtri@civ.zcu.cz>
Tue, 15 Oct 2013 11:35:28 +0000
(13:35 +0200)
src/VfsNs.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/VfsNs.cpp
b/src/VfsNs.cpp
index
9d62146
..
855f043
100644
(file)
--- a/
src/VfsNs.cpp
+++ b/
src/VfsNs.cpp
@@
-823,7
+823,8
@@
ExtendedStat VfsCatalog::getParent(const std::string& path,
*name = components.back();
components.pop_back();
- *parentPath = Url::joinPath(components);
+ if (components.size() == 1 && components[0] == "/") *parentPath = "/";
+ else *parentPath = Url::joinPath(components);
// Get the files now
if (!parentPath->empty()) {