RFR: 8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link [v2]

Brian Burkhalter bpb at openjdk.org
Tue Aug 29 20:40:39 UTC 2023


> Modify `Path.toRealPath` such that it does not collapse links such as "link/.." or "link/../.." when `LinkOption.NOFOLLOW_LINKS` is specified or, in some cases, not.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8306882: Revert Windows and test changes; add some text to comments in Unix change

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15397/files
  - new: https://git.openjdk.org/jdk/pull/15397/files/20dd8d49..75db4996

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15397&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15397&range=00-01

  Stats: 175 lines in 3 files changed: 7 ins; 127 del; 41 mod
  Patch: https://git.openjdk.org/jdk/pull/15397.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15397/head:pull/15397

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


More information about the nio-dev mailing list