Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2015-06-25 04:42:19 -0400
committerUwe Stieber2015-06-25 04:42:37 -0400
commit4124f90c83abc49198d9f4a74758593610912b22 (patch)
treef5942a369da6625058624b24405e1de3094eca42
parented2cb7273f4886b4765ea7fb7fa1c40779b625e9 (diff)
downloadorg.eclipse.tcf-4124f90c83abc49198d9f4a74758593610912b22.tar.gz
org.eclipse.tcf-4124f90c83abc49198d9f4a74758593610912b22.tar.xz
org.eclipse.tcf-4124f90c83abc49198d9f4a74758593610912b22.zip
Target Explorer: Fix URI/URL location calculation on Linux hosts
browsing the host file system through a VxWorks node
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/internal/FSTreeNode.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/internal/FSTreeNode.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/internal/FSTreeNode.java
index 41c072a26..ba0d27cbc 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/internal/FSTreeNode.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/internal/FSTreeNode.java
@@ -236,6 +236,8 @@ public final class FSTreeNode extends FSTreeNodeBase implements IFilterable, org
if (fType == Type.ROOT) {
if (isWindowsNode() && name.charAt(name.length()-1) != separator) {
return name.substring(0, name.length()-1) + separator;
+ } else if (name.charAt(0) != separator) {
+ return separator + name;
}
return name;
}

Back to the top