From f76cf1434b5ad46dc7e144275e399d993bcc26cf Mon Sep 17 00:00:00 2001 From: David McKnight Date: Mon, 6 Nov 2006 16:05:09 +0000 Subject: [PATCH] fix for 163381 - improper implementation of IRemoteFile.equals --- .../rse/subsystems/files/core/subsystems/RemoteFile.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 148e2c63571..3c19c744fd8 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 @@ -1125,7 +1125,10 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable String otherPath = other.getAbsolutePath(); String path = this.getAbsolutePath(); String otherHost = other.getHostName(); - return getHostName().equals(otherHost) && path.equals(otherPath) || otherPath.equals(path); + String otherHostAlias = other.getParentRemoteFileSubSystem().getHostAliasName(); + return getHostName().equals(otherHost) && (path.equals(otherPath) || otherPath.equals(path)); + //return getParentRemoteFileSubSystem().getHostAliasName().equals(otherHostAlias); + } else {