mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-17 05:55:22 +02:00
[328098] infinite loop when opening file from an UNC path
This commit is contained in:
parent
19765ed8c0
commit
eb28270a16
1 changed files with 2 additions and 3 deletions
|
@ -23,6 +23,7 @@
|
||||||
* David McKnight (IBM) - [277911] cached results of remote file query need to be sorted
|
* 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) - [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) - [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;
|
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)
|
private String getParentPathFor(String path)
|
||||||
{
|
{
|
||||||
boolean isUnix = getParentRemoteFileSubSystem().getParentRemoteFileSubSystemConfiguration().isUnixStyle();
|
|
||||||
|
|
||||||
String separator = getSeparator();
|
String separator = getSeparator();
|
||||||
|
|
||||||
if (isUnix && path.equals(separator))
|
if (path.equals(separator))
|
||||||
{
|
{
|
||||||
return null; // no parent of root
|
return null; // no parent of root
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue