1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 10:05:24 +02:00

fix for 163381 - improper implementation of IRemoteFile.equals

This commit is contained in:
David McKnight 2006-11-06 16:05:09 +00:00
parent f5601b37b0
commit f76cf1434b

View file

@ -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
{