mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
[436970] connection alias with ':' causes problems
This commit is contained in:
parent
6d3ebb0ff3
commit
ddf7babfee
1 changed files with 2 additions and 1 deletions
|
@ -62,6 +62,7 @@
|
||||||
* Zhou Renjian (Kortide) - [282238] NPE when copying host and overwrite itself
|
* Zhou Renjian (Kortide) - [282238] NPE when copying host and overwrite itself
|
||||||
* Martin Oberhuber (Wind River) - [359554] Avoid disconnect when changing default user id only
|
* Martin Oberhuber (Wind River) - [359554] Avoid disconnect when changing default user id only
|
||||||
* David McKnight (IBM) - [433541] profile duplication isn't copying profile or connection property sets
|
* David McKnight (IBM) - [433541] profile duplication isn't copying profile or connection property sets
|
||||||
|
* David McKnight (IBM) - [436970] connection alias with ':' causes problems
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.core.model;
|
package org.eclipse.rse.internal.core.model;
|
||||||
|
@ -818,7 +819,7 @@ public class SystemRegistry implements ISystemRegistry
|
||||||
ISubSystem result = null;
|
ISubSystem result = null;
|
||||||
// first extract subsystem id
|
// first extract subsystem id
|
||||||
int profileDelim = absoluteSubSystemName.indexOf("."); //$NON-NLS-1$
|
int profileDelim = absoluteSubSystemName.indexOf("."); //$NON-NLS-1$
|
||||||
int connectionDelim = absoluteSubSystemName.indexOf(":", profileDelim + 1); //$NON-NLS-1$
|
int connectionDelim = absoluteSubSystemName.lastIndexOf(":"); //$NON-NLS-1$
|
||||||
|
|
||||||
if (profileDelim > 0 && connectionDelim > profileDelim)
|
if (profileDelim > 0 && connectionDelim > profileDelim)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue