Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2006-11-29 23:25:08 +0000
committerAndrew Niefer2006-11-29 23:25:08 +0000
commit2b671624a7ec8d7439231c26b585bc35ad989975 (patch)
treef09ae27e4b5b649748a70c877b09c9387130c1a2 /bundles
parenta635255fbd565f9223061134fd6ae28c69d263c7 (diff)
downloadrt.equinox.framework-2b671624a7ec8d7439231c26b585bc35ad989975.tar.gz
rt.equinox.framework-2b671624a7ec8d7439231c26b585bc35ad989975.tar.xz
rt.equinox.framework-2b671624a7ec8d7439231c26b585bc35ad989975.zip
handle symlinks for non-windows
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.launcher/library/eclipseCommon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/library/eclipseCommon.c b/bundles/org.eclipse.equinox.launcher/library/eclipseCommon.c
index d6c1f5446..4fd9ad810 100644
--- a/bundles/org.eclipse.equinox.launcher/library/eclipseCommon.c
+++ b/bundles/org.eclipse.equinox.launcher/library/eclipseCommon.c
@@ -35,6 +35,7 @@ _TCHAR* officialName = NULL;
_TCHAR* findCommand( _TCHAR* command )
{
_TCHAR* cmdPath;
+ _TCHAR* buffer;
int length;
_TCHAR* ch;
_TCHAR* dir;
@@ -157,6 +158,13 @@ _TCHAR* findCommand( _TCHAR* command )
cmdPath = NULL;
}
+#ifndef _WIN32
+ /* resolve symlinks */
+ buffer = cmdPath;
+ cmdPath = canonicalize_file_name(cmdPath);
+ free(buffer);
+#endif
+
/* Return the absolute command pathname. */
return cmdPath;
}

Back to the top