RFR: 8352480: [macos] Don't follow symlinks in additional content for app images

Alexey Semenyuk asemenyuk at openjdk.org
Wed Apr 30 20:58:45 UTC 2025


On Wed, 30 Apr 2025 20:17:57 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

> - Symbolic links will not be followed for `--app-content` on macOS.
> - Added test to cover this case.
> - `MacHelper` updated to use "cp -R" instead of "cp -r" when unpacking DMG, since "cp -r" on macOS is not documented option and when used `cp` will follow symbolic links which breaks test. "cp -R" does not follow symbolic links.

I don't like the idea of changing behavior on only one platform. It should be consistent across all platforms. Let's not follow symlinks on other platforms, either.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24974#issuecomment-2843261171


More information about the core-libs-dev mailing list