RFR: 8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link [v3]
Brian Burkhalter
bpb at openjdk.org
Wed Aug 30 18:01:33 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 with a new target base due to a merge or a rebase. The pull request now contains four commits:
- 8306882: Add tests; put Windows on problem list
- Merge
- 8306882: Revert Windows and test changes; add some text to comments in Unix change
- 8306882: (fs) Path.toRealPath(LinkOption.NOFOLLOW_LINKS) fails when "../../" follows a link
-------------
Changes: https://git.openjdk.org/jdk/pull/15397/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15397&range=02
Stats: 70 lines in 3 files changed: 63 ins; 1 del; 6 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