mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 14:45:57 +02:00
[246897] Wrong canonical path for a symbolic link
This commit is contained in:
parent
564a480442
commit
af113aa140
1 changed files with 9 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
||||||
* Martin Oberhuber (Wind River) - [234726] Update IRemoteFile Javadocs
|
* Martin Oberhuber (Wind River) - [234726] Update IRemoteFile Javadocs
|
||||||
|
* David McKnight (IBM) - [246897] Wrong canonical path for a symbolic link
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.files.dstore;
|
package org.eclipse.rse.internal.subsystems.files.dstore;
|
||||||
|
@ -195,6 +196,13 @@ public class DStoreFile extends AbstractRemoteFile
|
||||||
|
|
||||||
public String getCanonicalPath()
|
public String getCanonicalPath()
|
||||||
{
|
{
|
||||||
|
String classification = getClassification();
|
||||||
|
if (classification != null && classification.startsWith("symbolic link")){ //$NON-NLS-1$
|
||||||
|
// special path - use path in classification
|
||||||
|
int colonIndex = classification.indexOf(":");
|
||||||
|
String canonicalPath = classification.substring(colonIndex + 1);
|
||||||
|
return canonicalPath;
|
||||||
|
}
|
||||||
return getAbsolutePath();
|
return getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue