java.library.path fix for MacOS X (7145798)
paul.hohensee at oracle.com
Fri Feb 17 14:27:18 PST 2012
Looks good. A nit: you could use %s:%c in the sprintf format string, vis,
sprintf(ld_library_path, "%s:%c", t, '.');
which would save allocating the "." string.
Are there any security issues with using dot on a search path?
On 2/17/12 5:06 PM, Daniel D. Daugherty wrote:
> Apple's version of Java includes "." in the java.library.path
> at the beginning. OpenJDK includes "." at the end of
> java.library.path on Windows. On Linux and Solaris, "." is
> not included at all.
> In the MacOS X port project, the relevant code was copied from
> Linux so "." is not present in java.library.path. This should
> be changed to make the OpenJDK7 version on MacOS X behave
> similar to the Apple version of Java6.
> Here is the webrev URL:
> There more lines of comment in there than code...
> Thanks, in advance, for any feedback.
More information about the macosx-port-dev