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

Brian Burkhalter bpb at openjdk.org
Wed Aug 30 18:12:52 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: Remove vestigial println loop

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15397/files
  - new: https://git.openjdk.org/jdk/pull/15397/files/05a9cb9e..1e1234d7

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

  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 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