jdk17u-dev
jdk17u-dev copied to clipboard
8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases
trafficstars
Almost clean backport from JDK21
The only difference is an additional EPERM check in the stat1 method. This method was removed in JDK21 as part of JDK-8283335
Progress
- [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
- [ ] JDK-8337966 needs maintainer approval
- [x] Change must not contain extraneous whitespace
- [x] Commit message must refer to an issue
Issue
- JDK-8337966: (fs) Files.readAttributes fails with Operation not permitted on older docker releases (Bug - P4)
Reviewing
Using git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/2883/head:pull/2883
$ git checkout pull/2883
Update a local copy of the PR:
$ git checkout pull/2883
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/2883/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2883
View PR using the GUI difftool:
$ git pr show -t 2883
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/2883.diff