RFR: 8062795: (fs) Files.setPermissions requires read access when NOFOLLOW_LINKS specified

Brian Burkhalter bpb at openjdk.org
Wed Aug 9 23:19:29 UTC 2023


If setting POSIX permissions while not following links fails with `AccessDeniedException` but the path does not contain any symbolic links, then retry the operation as if the `NOFOLLOW_LINKS` option had not been specified.

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

Commit messages:
 - 8062795: (fs) Files.setPermissions requires read access when NOFOLLOW_LINKS specified

Changes: https://git.openjdk.org/jdk/pull/15214/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15214&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8062795
  Stats: 76 lines in 2 files changed: 72 ins; 2 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/15214.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15214/head:pull/15214

PR: https://git.openjdk.org/jdk/pull/15214


More information about the nio-dev mailing list