1diff -ru -x '*~' openjdk-orig/hotspot/src/os/linux/vm/os_linux.cpp openjdk/hotspot/src/os/linux/vm/os_linux.cpp
2--- openjdk-orig/hotspot/src/os/linux/vm/os_linux.cpp 2013-09-06 20:22:03.000000000 +0200
3+++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp 2014-01-24 22:44:08.223857012 +0100
4@@ -2358,12 +2358,10 @@
5 CAST_FROM_FN_PTR(address, os::jvm_path),
6 dli_fname, sizeof(dli_fname), NULL);
7 assert(ret, "cannot locate libjvm");
8 char *rp = NULL;
9 if (ret && dli_fname[0] != '\0') {
10- rp = realpath(dli_fname, buf);
11+ snprintf(buf, buflen, "%s", dli_fname);
12 }
13- if (rp == NULL)
14- return;
15
16 if (Arguments::created_by_gamma_launcher()) {
17 // Support for the gamma launcher. Typical value for buf is