In GetDefaultJavaHome(), in src/solaris/java/jre/jre_md.c, variable
"char *path" does not get set if dladdr returns a pathname that starts
with a '/'.
Seems like the intent is to return an absolute path so if dladdr()
can really return an absolute path (as opposed to a filename as documented
in the man page), then we should be dealing with this edge case.
"char *path" does not get set if dladdr returns a pathname that starts
with a '/'.
Seems like the intent is to return an absolute path so if dladdr()
can really return an absolute path (as opposed to a filename as documented
in the man page), then we should be dealing with this edge case.