From eb28270a166dc0d5b09e553a2457d312e112f214 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Tue, 19 Oct 2010 19:46:11 +0000 Subject: [PATCH] [328098] infinite loop when opening file from an UNC path --- .../rse/subsystems/files/core/subsystems/RemoteFile.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java index 23611cd247d..4909a118981 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/RemoteFile.java @@ -23,6 +23,7 @@ * David McKnight (IBM) - [277911] cached results of remote file query need to be sorted * David McKnight (IBM) - [289387] Remote Search does not return line nodes in result tree * David McKnight (IBM) - [283033] remoteFileTypes extension point should include "xml" type + * David McKnight (IBM) - [328098] infinite loop when opening file from an UNC path *******************************************************************************/ package org.eclipse.rse.subsystems.files.core.subsystems; @@ -1151,11 +1152,9 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable private String getParentPathFor(String path) { - boolean isUnix = getParentRemoteFileSubSystem().getParentRemoteFileSubSystemConfiguration().isUnixStyle(); - String separator = getSeparator(); - if (isUnix && path.equals(separator)) + if (path.equals(separator)) { return null; // no parent of root }