Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2006-12-07 23:23:44 +0000
committerAndrew Niefer2006-12-07 23:23:44 +0000
commit01fde3cca724d947f28aab3c63e766663ff93bb2 (patch)
tree2dc7baec2ac6e844b1b69843502f6bfcdd134dcc /bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
parent25e85ed332feac7061f5427fa5d0b20052aae31b (diff)
downloadrt.equinox.framework-01fde3cca724d947f28aab3c63e766663ff93bb2.tar.gz
rt.equinox.framework-01fde3cca724d947f28aab3c63e766663ff93bb2.tar.xz
rt.equinox.framework-01fde3cca724d947f28aab3c63e766663ff93bb2.zip
MACOSX: better selection of VM, resolving symlinks and restarting the launcher
Diffstat (limited to 'bundles/org.eclipse.equinox.executable/library/eclipseCommon.c')
-rw-r--r--bundles/org.eclipse.equinox.executable/library/eclipseCommon.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
index bb8e6e11a..0011ffae0 100644
--- a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
+++ b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c
@@ -186,16 +186,20 @@ _TCHAR* findCommand( _TCHAR* command )
cmdPath = NULL;
}
+ return resolveSymlinks(cmdPath);
+}
+
#if !defined(_WIN32) && !defined(MACOSX)
+char * resolveSymlinks( char * path ) {
+ if(path == NULL)
+ return path;
/* resolve symlinks */
- ch = cmdPath;
+ char * ch = cmdPath;
cmdPath = canonicalize_file_name(cmdPath);
free(ch);
-#endif
-
- /* Return the absolute command pathname. */
return cmdPath;
}
+#endif
#ifndef _WIN32
#ifdef MACOSX

Back to the top