Integrated: 8336498: [macos] [build]: install-file macro may run into permission denied error
Lutz Schmidt
lucy at openjdk.org
Wed Aug 21 08:26:11 UTC 2024
On Tue, 16 Jul 2024 20:50:32 GMT, Lutz Schmidt <lucy at openjdk.org> wrote:
> On MacOS, files may have extended attributes attached. These attributes are copied together with the files. To prevent issues during further processing, the extended attributes of the copies must be removed. This action was implemented as solution of an older bug.
>
> The solution is incomplete because it does not handle files with read-only permissions correctly. Without write permission, matter cannot remove the extended attributes. The action is rejected with a "permission denied" error.
>
> The issue is present in all releases. I reproduced it in 11, 17, ... 23, head
>
> The solution is to "chmod u+w" only those files which need to have their extended attributes removed.
>
> Backport note: in releases prior to jdk23, the change needs to go into file MakeBase.gmk.
>
> Testing @SAP completed without any related issues.
This pull request has now been integrated.
Changeset: 715fa8f9
Author: Lutz Schmidt <lucy at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/715fa8f9fe7242e86b985aece3d078b226f53fb9
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
8336498: [macos] [build]: install-file macro may run into permission denied error
Reviewed-by: clanger, erikj
-------------
PR: https://git.openjdk.org/jdk/pull/20203
More information about the build-dev
mailing list